Public Member Functions | |
| HRESULT | Clear (void) |
| HRESULT | Create ([in] RtDWORD nWidth,[in] RtDWORD nHeight,[in] RtPixelFormat PixelFormat) |
| HRESULT | CreateEx ([in] RtDWORD nWidth,[in] RtDWORD nHeight,[in] BSTR bsFormat) |
| HRESULT | ConvertFormat ([in] RtPixelFormat pFormat) |
| HRESULT | GetHeader ([out] RtDWORD *pdwWidth,[out] RtDWORD *pdwHeight,[out] RtPixelFormat *pFormat) |
| HRESULT | GetFormatDesc ([out] RtPixelFormatDesc *pDesc) |
| HRESULT | GetSizeX ([out, retval] RtDWORD *pOut) |
| HRESULT | GetSizeY ([out, retval] RtDWORD *pOut) |
| HRESULT | GetFormatString ([out, retval] BSTR *pOut) |
| HRESULT | GetFormat ([out, retval] RtPixelFormat *pOut) |
| HRESULT | GetFormatNumberFromString ([in] BSTR bsFormat,[out, retval] RtPixelFormat *pOut) |
| HRESULT | GetFormatStringFromNumber ([in] RtPixelFormat Format,[out, retval] BSTR *pOut) |
| HRESULT | GetPixel ([in] RtDWORD dwPositionX,[in] RtDWORD dwPositionY,[in] IRdColor *pOutValue) |
| HRESULT | SetPixel ([in] RtDWORD dwPositionX,[in] RtDWORD dwPositionY,[in] IRdColor *pInValue) |
| HRESULT | GetPixelCOLORREF ([in] RtDWORD dwPositionX,[in] RtDWORD dwPositionY,[in] COLORREF *pOutValue) |
| HRESULT | GetPixelBuffer ([in] RtFlags dwFlags,[out] void **pBuffer) |
| HRESULT | CommitPixelBuffer ([in] void *pBuffer) |
| HRESULT | LockBitmap () |
| HRESULT | UnlockBitmap () |
| HRESULT | CreateDDBitmap ([in] HDC hDC,[out, retval] HBITMAP *pHBitmap) |
| HRESULT | CreateDDBitmapResized ([in] HDC hDC,[in] int sizeX,[in] int sizeY,[out, retval] HBITMAP *pHBitmap) |
| HRESULT | LoadFromFile ([in] BSTR FileName) |
| HRESULT | GetFileName ([out, retval] BSTR *pFileName) |
| HRESULT | SetIsFromFile ([in] RtBool bIsFromFile,[in] BSTR bstrFileName) |
| HRESULT | SetHBitmap ([in] HBITMAP hBitmap) |
| HRESULT | SaveToFile ([in] RtBitmapFileFormat Format,[in] BSTR FileName) |
| HRESULT | Resize ([in] RtDWORD dwWidth,[in] RtDWORD dwHeight) |
| HRESULT | SetAdvancedFeature ([in] GUID FeatureID,[in] DWORD FeatureModifier,[in] VARIANT FeatureData) |
| HRESULT | GetAdvancedFeature ([in] GUID FeatureID,[out] DWORD *FeatureModifier,[out] VARIANT *FeatureData) |
| HRESULT | IsAdvancedFeatureSupported ([in] GUID FeatureID) |
| HRESULT | GetSupportedFormatCount ([out, retval] DWORD *dwFormatCount) |
| HRESULT | GetSupportedFormat ([in] DWORD dwFormat,[out] BSTR *bsMasks,[out] BSTR *bsFormatName) |
| HRESULT | IsEqual ([in] IRdBitmap *pBitmap,[out, retval] BOOL *bEqualityResult) |
| HRESULT | ImageSizeFromFile ([in]BSTR FileName,[out] DWORD *width,[out] DWORD *height) |
| HRESULT | GetDownsampledFlag ([out, retval] RtBool *pVal) |
| HRESULT | SetDownsampledFlag ([in] RtBool newVal) |
|
|
Clear all data in the bitmap. Create has to be called to use the bitmap |
|
||||||||||||||||
|
Creates the internal buffers of the bitmap and prepares the bitmap for the use.
|
|
||||||||||||||||
|
Creates the internal buffers of the bitmap and prepares the bitmap for the use.
|
|
|
Convert bitmap from one format to another.
|
|
||||||||||||||||
|
Return the header information of the bitmap.
|
|
|
Return the pixel format description.
|
|
|
Get the horizontal size.
|
|
|
Get the vertical size
|
|
|
Get the pixel format in a string
|
|
|
Get the pixel format
|
|
||||||||||||
|
Convert string format to the enumeration number
|
|
||||||||||||
|
Get the pixel format string from a number.
|
|
||||||||||||||||
|
Return pixel color at given position.
|
|
||||||||||||||||
|
Set pixel color at given position
|
|
||||||||||||||||
|
Return pixel at given position in the COLORREF format.
|
|
||||||||||||
|
This method returns pointer to the pixel buffer of the bitmap. Caller cannot modify contents of the buffer if he does not specify BFLG_WILLOVERWRITE in a flag. Caller has to return the buffer to the bitmap using CommitPixelBuffer. Buffer alignment is top-left to bottom - this means that top-left pixel is considered to be [0][0] and therefore is at the buffer start Use CRsBitmapBufLock for safe pairing of locks and unlocks.
|
|
|
This method returns the locked buffer back to bitmap. Buffer pointer becomes invalid. Use CRsBitmapBufLock for safe pairing of locks and unlocks.
|
|
|
Lock the bitmap - access to methods from other threads will not be possible until UnlockBitmap is called.
|
|
|
Unlock the bitmap after previous call to LockBitmap.
|
|
||||||||||||
|
This method creates device depended bitmap (DDB) and fills it with color data.
|
|
||||||||||||||||||||
|
This method creates device depended bitmap (DDB) of given size and fills it with color data.
|
|
|
This method is used to load image from a file. Previous bitmap contents are discarded.
|
|
|
Get filename of the bitmap if it was loaded from file.
|
|
||||||||||||
|
Set IsFromFile flag and filename of the bitmap (usefull when you modified the bitmap but still want to keep track of origin filename)
|
|
|
This method is used to load image from a HBITMAP handle. Previous bitmap contents are discarded.
|
|
||||||||||||
|
This method is used to save image to a file.
|
|
||||||||||||
|
This method is used to resize the bitmap.
|
|
||||||||||||||||
|
This method sets properties of extensible advanced features of the bitmap This provides extensible mechanism for features. Implementation should return E_NOTIMPL for unsupported feature. FeatureID specifies the ID of the feature. FeatureModifier specifies feature specific modifier to use. FeatureData specifies feature specific data to use.
|
|
||||||||||||||||
|
This method gets properties of extensible advanced features of the bitmap. This provides extensible mechanism for features. Implementation should return E_NOTIMPL for unsupported feature FeatureID specifies the ID of the feature. FeatureModifier is filled with feature specific modifier. FeatureData is filled with feature specific data.
|
|
|
This method can be used to determine if advanced feature is supported for bitmap S_OK is returned for supported feature, S_FALSE for unsupported feature, No other success codes are allowed and error codes are reserved for method failure. FeatureID specifies the ID of the feature.
|
|
|
Return the number of supported loadable formats for enumeration through GetSupportedFormat
|
|
||||||||||||||||
|
Return the information about supported format
|
|
||||||||||||
|
Checks bitmap for equality with other bitmap. Return S_OK if bitmaps are equal and return S_FALSE if they are not equal.
|
|
||||||||||||||||
|
Return Width and Height of the file on disk (if supported)
|
|
|
Get downsampled flag
|
|
|
Set downsampled flag.
|
1.3.2