Bitmap class (gdiplusheaders.h)

The Bitmap class inherits from the Image class. The Image class provides methods for loading and saving vector images (metafiles) and raster images (bitmaps). The Bitmap class expands on the capabilities of the Image class by providing additional methods for creating and manipulating raster images.

Inheritance

The Bitmap class implements Image.

Methods

The Bitmap class has these methods.

 
Bitmap::ApplyEffect

The Bitmap::ApplyEffect method creates a new Bitmap object by applying a specified effect to an existing Bitmap object.
Bitmap::ApplyEffect

The Bitmap::ApplyEffect method alters this Bitmap object by applying a specified effect.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object based on a BITMAPINFO structure and an array of pixel data.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object based on an image file.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object based on a handle to a Windows Windows Graphics Device Interface (GDI) bitmap and a handle to a GDI palette.
Bitmap::Bitmap

Creates a Bitmap object based on an icon.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object based on an application or DLL instance handle and the name of a bitmap resource.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object based on a DirectDraw surface. The Bitmap::Bitmap object maintains a reference to the DirectDraw surface until the Bitmap::Bitmap object is deleted or goes out of scope.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object based on a Graphics object, a width, and a height.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object based on an array of bytes along with size and format information.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object of a specified size and pixel format. The pixel data must be provided after the Bitmap::Bitmap object is constructed.
Bitmap::Bitmap

Creates a Bitmap::Bitmap object based on an IStream COM interface.
Bitmap::Clone

The Bitmap::Clone method creates a new Bitmap object by copying a portion of this bitmap.
Bitmap::Clone

The Bitmap::Clone method creates a new Bitmap object by copying a portion of this bitmap.
Bitmap::Clone

The Bitmap::Clone method creates a new Bitmapobject by copying a portion of this bitmap.
Bitmap::Clone

The Bitmap::Clone method creates a new Bitmapobject by copying a portion of this bitmap.
Bitmap::ConvertFormat

The Bitmap::ConvertFormat method converts a bitmap to a specified pixel format. The original pixel data in the bitmap is replaced by the new pixel data.
Bitmap::FromBITMAPINFO

The Bitmap::FromBITMAPINFO method creates a Bitmap object based on a BITMAPINFO structure and an array of pixel data.
Bitmap::FromDirectDrawSurface7

The Bitmap::FromDirectDrawSurface7 method creates a Bitmap object based on a DirectDraw surface. The Bitmap object maintains a reference to the DirectDraw surface until the Bitmap object is deleted.
Bitmap::FromFile

The Bitmap::FromFile method creates a Bitmap object based on an image file.
Bitmap::FromHBITMAP

The Bitmap::FromHBITMAP method creates a Bitmap object based on a handle to a Windows Graphics Device Interface (GDI) bitmap and a handle to a GDI palette.
Bitmap::FromHICON

The Bitmap::FromHICON method creates a Bitmap object based on a handle to an icon.
Bitmap::FromResource

The Bitmap::FromResource method creates a Bitmap object based on an application or DLL instance handle and the name of a bitmap resource.
Bitmap::FromStream

The Bitmap::FromStream method creates a Bitmap object based on a stream.
Bitmap::GetHBITMAP

The Bitmap::GetHBITMAP method creates a Windows Graphics Device Interface (GDI) bitmap from this Bitmap object.
Bitmap::GetHICON

The Bitmap::GetHICON method creates an icon from this Bitmap object.
Bitmap::GetHistogram

The Bitmap::GetHistogram method returns one or more histograms for specified color channels of this Bitmap object.
Bitmap::GetHistogramSize

The Bitmap::GetHistogramSize returns the number of elements (in an array of UINTs) that you must allocate before you call the Bitmap::GetHistogram method of a Bitmap object.
Bitmap::GetPixel

The Bitmap::GetPixel method gets the color of a specified pixel in this bitmap.
Bitmap::InitializePalette

The Bitmap::InitializePalette method initializes a standard, optimal, or custom color palette.
Bitmap::LockBits

The Bitmap::LockBits method locks a rectangular portion of this bitmap and provides a temporary buffer that you can use to read or write pixel data in a specified format.
Bitmap::SetPixel

The Bitmap::SetPixel method sets the color of a specified pixel in this bitmap.
Bitmap::SetResolution

The Bitmap::SetResolution method sets the resolution of this Bitmap object.
Bitmap::UnlockBits

The Bitmap::UnlockBits method unlocks a portion of this bitmap that was previously locked by a call to Bitmap::LockBits.

Requirements

   
Target Platform Windows
Header gdiplusheaders.h