PixelLightAPI
.
|
Static class with some useful Windows image tools. More...
#include <ImageToolsWindows.h>
Static Public Member Functions | |
static PLGRAPHICS_API HBITMAP | ConvertToHBitmap (Image &cImage, HDC hDC) |
Returns a Windows-friendly bitmap handle. | |
static PLGRAPHICS_API bool | SetHBitmap (Image &cImage, HBITMAP hBitmap) |
Sets the current image to be a copy of a Windows bitmap. | |
static PLGRAPHICS_API bool | GetWinClipboard (Image &cImage) |
Copies the Windows clipboard to the current image. | |
static PLGRAPHICS_API bool | SetWinClipboard (Image &cImage) |
Copies an image to the Windows clipboard. | |
static PLGRAPHICS_API bool | LoadResource (Image &cImage, HINSTANCE hInst, int nID, const PLCore::String &sResourceType, const PLCore::String &sFileType) |
Loads a Windows resource as the current image. |
Static class with some useful Windows image tools.
static PLGRAPHICS_API HBITMAP PLGraphics::ImageToolsWindows::ConvertToHBitmap | ( | Image & | cImage, |
HDC | hDC | ||
) | [static] |
Returns a Windows-friendly bitmap handle.
[in] | cImage | Image to use |
[in] | hDC | The device context that you want to receive the HBITMAP |
static PLGRAPHICS_API bool PLGraphics::ImageToolsWindows::SetHBitmap | ( | Image & | cImage, |
HBITMAP | hBitmap | ||
) | [static] |
Sets the current image to be a copy of a Windows bitmap.
[in] | cImage | Image to use |
[in] | hBitmap | Bitmap to copy to the given image |
static PLGRAPHICS_API bool PLGraphics::ImageToolsWindows::GetWinClipboard | ( | Image & | cImage | ) | [static] |
Copies the Windows clipboard to the current image.
[in] | cImage | Image to use |
static PLGRAPHICS_API bool PLGraphics::ImageToolsWindows::SetWinClipboard | ( | Image & | cImage | ) | [static] |
Copies an image to the Windows clipboard.
[in] | cImage | Image to use |
static PLGRAPHICS_API bool PLGraphics::ImageToolsWindows::LoadResource | ( | Image & | cImage, |
HINSTANCE | hInst, | ||
int | nID, | ||
const PLCore::String & | sResourceType, | ||
const PLCore::String & | sFileType | ||
) | [static] |
Loads a Windows resource as the current image.
[in] | cImage | Image to use |
[in] | hInst | The application's HINSTANCE |
[in] | nID | The resource identifier of the resource to be loaded |
[in] | sResourceType | The type of user-defined resource (name used when creating) |
[in] | sFileType | The type of image to be loaded, e.g. "bmp". Pass empty string to let the type be determined automatically |
|