Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
GdiPlusCachedBitmap.h
Package: GDIUSE.rar [view]
Upload User: jinlangri
Upload Date: 2022-07-17
Package Size: 10774k
Code Size: 2k
Category:
GDI-Bitmap
Development Platform:
Visual C++
- /**************************************************************************
- *
- * Copyright (c) 2000 Microsoft Corporation
- *
- * Module Name:
- *
- * CachedBitmap class definition
- *
- * Abstract:
- *
- * 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.
- *
- **************************************************************************/
- #ifndef _GDIPLUSCACHEDBITMAP_H
- #define _GDIPLUSCACHEDBITMAP_H
- /**************************************************************************
- *
- * Class Name:
- *
- * CachedBitmap
- *
- * Abstract:
- *
- * An object to store a bitmap prepared for rendering on a particular
- * Graphics object. The memory storage for the CachedBitmap is opaque
- * to the other Engine code, so the only operations supported are
- * initializing the data (with a bitmap) and using the graphics to
- * draw it on the screen with an integer offset.
- *
- * Look for the class definition in GdiplusHeaders.h
- *
- * Created:
- *
- * 04/23/2000 asecchia
- * Created it.
- *
- **************************************************************************/
- 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