You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
/**************************************************************************
|
|
*
|
|
* Copyright (c) 2000 Microsoft Corporation
|
|
*
|
|
* Module Name:
|
|
*
|
|
* CachedBitmap class definition
|
|
*
|
|
* Abstract:
|
|
*
|
|
* GDI+ CachedBitmap is a representation of an accelerated drawing
|
|
* that has restrictions on what operations are allowed in order
|
|
* to accelerate the drawing to the destination.
|
|
*
|
|
* Look for class definition in GdiplusHeaders.h
|
|
*
|
|
**************************************************************************/
|
|
|
|
#ifndef _GDIPLUSCACHEDBITMAP_H
|
|
#define _GDIPLUSCACHEDBITMAP_H
|
|
|
|
inline
|
|
CachedBitmap::CachedBitmap(
|
|
IN Bitmap *bitmap,
|
|
IN Graphics *graphics)
|
|
{
|
|
nativeCachedBitmap = NULL;
|
|
|
|
lastResult = DllExports::GdipCreateCachedBitmap(
|
|
(GpBitmap *)bitmap->nativeImage,
|
|
graphics->nativeGraphics,
|
|
&nativeCachedBitmap
|
|
);
|
|
}
|
|
|
|
inline
|
|
CachedBitmap::~CachedBitmap()
|
|
{
|
|
DllExports::GdipDeleteCachedBitmap(nativeCachedBitmap);
|
|
}
|
|
|
|
inline Status
|
|
CachedBitmap::GetLastStatus() const
|
|
{
|
|
Status lastStatus = lastResult;
|
|
lastResult = Ok;
|
|
return (lastStatus);
|
|
}
|
|
|
|
#endif
|
|
|