Udostępnij za pośrednictwem


CImage Members

Operators

operator HBITMAP

Returns the Windows handle attached to the CImage object.

Construction

CImage

The constructor.

Operations

AlphaBlend

Displays bitmaps that have transparent or semitransparent pixels.

Attach

Attaches an HBITMAP to a CImage object. Can be used with either non-DIB section bitmaps or DIB section bitmaps.

BitBlt

Copies a bitmap from the source device context to this current device context.

Create

Creates a DIB section bitmap and attaches it to the previously constructed CImage object.

CreateEx

Creates a DIB section bitmap (with additional parameters) and attaches it to the previously constructed CImage object.

Destroy

Detaches the bitmap from the CImage object and destroys the bitmap.

Detach

Detaches the bitmap from a CImage object.

Draw

Copies a bitmap from a source rectangle into a destination rectangle. Draw stretches or compresses the bitmap to fit the dimensions of the destination rectangle, if necessary, and handles alpha blending and transparent colors.

GetBits

Retrieves a pointer to the actual pixel values of the bitmap.

GetBPP

Retrieves the bits per pixel.

GetColorTable

Retrieves red, green, blue (RGB) color values from a range of entries in the color table.

GetDC

Retrieves the device context into which the current bitmap is selected.

GetExporterFilterString

Finds the available image formats and their descriptions.

GetImporterFilterString

Finds the available image formats and their descriptions.

GetHeight

Retrieves the height of the current image in pixels.

GetMaxColorTableEntries

Retrieves the maximum number of entries in the color table.

GetPitch

Retrieves the pitch of the current image, in bytes.

GetPixelAddress

Retrieves the address of a given pixel.

GetPixel

Retrieves the color of the pixel specified by x and y.

GetTransparentColor

Retrieves the position of the transparent color in the color table.

GetWidth

Retrieves the width of the current image in pixels.

IsDibSection

Determines if the attached bitmap is a DIB section.

IsIndexed

Indicates that a bitmap's colors are mapped to an indexed palette.

IsNull

Indicates if a source bitmap is currently loaded.

IsTransparencySupported

Indicates whether the application supports transparent bitmaps and was compiled for Windows 2000 or later.

LoadFromResource

Loads an image from the specified resource.

Load

Loads an image from the specified file.

MaskBlt

Combines the color data for the source and destination bitmaps using the specified mask and raster operation.

PlgBlt

Performs a bit-block transfer from a rectangle in a source device context into a parallelogram in a destination device context.

ReleaseDC

Releases the device context that was retrieved with CImage::GetDC.

ReleaseGDIPlus

Releases resources used by GDI+. Must be called to free resources created by a global CImage object.

Save

Saves an image as the specified type. Save cannot specify image options.

SetColorTable

Sets red, green, blue RGB) color values in a range of entries in the color table of the DIB section.

SetPixelIndexed

Sets the pixel at the specified coordinates to the color at the specified index of the palette.

SetPixelRGB

Sets the pixel at the specified coordinates to the specified red, green, blue (RGB) value.

SetPixel

Sets the pixel at the specified coordinates to the specified color.

SetTransparentColor

Sets the index of the color to be treated as transparent. Only one color in a palette can be transparent.

StretchBlt

Copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary.

TransparentBlt

Copies a bitmap with transparent color from the source device context to this current device context.

See Also

Reference

CImage Class