SECImage::MakeBitmap

Creates a CBitmap from the current image data.

Defined in: SECIMAGE.cpp

Syntax

CBitmap* SECImage::MakeBitmap(CDC *pDC, const TCHAR * lpszFileName)

CBitmap* SECImage::MakeBitmap(CDC *pDC)

Return Value

Returns a pointer to a CBitmap if successful; otherwise 0.

Parameters

pDC

Device context to create a new bitmap for.

lpszFileName

Name of the file to create a new bitmap for.

Comments

Creates a CBitmap object compatible with the device context specified by pDC, using the image data as the source for the bitmap data.

Developer Notes

When you are finished using the CBitmap object created by MakeBitmap, make sure the bitmap is selected out of the device context, then delete the CBitmap object.

See Also

SECImage CreateFromBitmap