Leaked source code of windows server 2003
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

  1. /**************************************************************************
  2. *
  3. * Copyright (c) 2000 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * CachedBitmap class definition
  8. *
  9. * Abstract:
  10. *
  11. * GDI+ CachedBitmap is a representation of an accelerated drawing
  12. * that has restrictions on what operations are allowed in order
  13. * to accelerate the drawing to the destination.
  14. *
  15. * Look for class definition in GdiplusHeaders.h
  16. *
  17. **************************************************************************/
  18. #ifndef _GDIPLUSCACHEDBITMAP_H
  19. #define _GDIPLUSCACHEDBITMAP_H
  20. inline
  21. CachedBitmap::CachedBitmap(
  22. IN Bitmap *bitmap,
  23. IN Graphics *graphics)
  24. {
  25. nativeCachedBitmap = NULL;
  26. lastResult = DllExports::GdipCreateCachedBitmap(
  27. (GpBitmap *)bitmap->nativeImage,
  28. graphics->nativeGraphics,
  29. &nativeCachedBitmap
  30. );
  31. }
  32. inline
  33. CachedBitmap::~CachedBitmap()
  34. {
  35. DllExports::GdipDeleteCachedBitmap(nativeCachedBitmap);
  36. }
  37. inline Status
  38. CachedBitmap::GetLastStatus() const
  39. {
  40. Status lastStatus = lastResult;
  41. lastResult = Ok;
  42. return (lastStatus);
  43. }
  44. #endif