19#ifndef _GDIPLUSHEADERS_H
20#define _GDIPLUSHEADERS_H
30 if (useEmbeddedColorManagement)
38 if (useEmbeddedColorManagement)
66 return new Image(
stream, useEmbeddedColorManagement);
74 return SetStatus(DllExports::GdipGetAllPropertyItems(
nativeImage, totalBufferSize, numProperties, allItems));
142 REAL resolution = 0.0f;
187 UINT numOfProperty = 0;
189 return numOfProperty;
228 SetStatus(DllExports::GdipGetImageThumbnail(
231 if (newImage ==
NULL)
233 DllExports::GdipDisposeImage(thumbImage);
249 REAL resolution = 0.0f;
398 lastStatus = DllExports::GdipCreateBitmapFromGdiDib(gdiBitmapInfo, gdiBitmapData, &
bitmap);
481 if (newBitmap ==
NULL)
483 DllExports::GdipDisposeImage(
bitmap);
499 if (newBitmap ==
NULL)
501 DllExports::GdipDisposeImage(
bitmap);
510 return new Bitmap(gdiBitmapInfo, gdiBitmapData);
552 DllExports::GdipCreateHBITMAPFromBitmap(
GetNativeBitmap(), hbmReturn, colorBackground.GetValue()));
567 color->SetValue(argb);
619 lastStatus = DllExports::GdipCreateCachedBitmap(
736 genericMonospace->
status =
737 DllExports::GdipGetGenericFontFamilyMonospace(genericMonospace ? &genericMonospace->
fontFamily :
NULL);
738 return genericMonospace;
745 genericSansSerif->
status =
746 DllExports::GdipGetGenericFontFamilySansSerif(genericSansSerif ? &genericSansSerif->
fontFamily :
NULL);
747 return genericSansSerif;
755 DllExports::GdipGetGenericFontFamilyMonospace(genericSerif ? &genericSerif->
fontFamily :
NULL);
814 return StyleAvailable;
891 status = DllExports::GdipCreateFontFromLogfontA(
hdc, logfont, &
font);
896 status = DllExports::GdipCreateFontFromLogfontW(
hdc, logfont, &
font);
912 cloneFont->
status = DllExports::GdipCloneFont(
font, cloneFont ? &cloneFont->
font :
NULL);
1239 SetStatus(DllExports::GdipIsVisibleRegionRect(
1248 SetStatus(DllExports::GdipIsVisibleRegionRectI(
1492 DllExports::GdipDisposeImage(
image);
Bitmap(GpBitmap *nativeBitmap)
static Bitmap * FromFile(const WCHAR *filename, BOOL useEmbeddedColorManagement)
Status GetHBITMAP(const Color &colorBackground, HBITMAP *hbmReturn)
static Bitmap * FromHICON(HICON hicon)
static Bitmap * FromBITMAPINFO(const BITMAPINFO *gdiBitmapInfo, VOID *gdiBitmapData)
Bitmap(const WCHAR *filename, BOOL useIcm)
Bitmap(IStream *stream, BOOL useIcm)
Bitmap(INT width, INT height, Graphics *target)
static Bitmap * FromStream(IStream *stream, BOOL useEmbeddedColorManagement)
Status UnlockBits(BitmapData *lockedBitmapData)
Bitmap * Clone(const RectF &rect, PixelFormat format)
Bitmap(const BITMAPINFO *gdiBitmapInfo, VOID *gdiBitmapData)
Bitmap * Clone(const Rect &rect, PixelFormat format)
Status SetPixel(INT x, INT y, const Color &color)
GpBitmap * GetNativeBitmap() const
static Bitmap * FromResource(HINSTANCE hInstance, const WCHAR *bitmapName)
static Bitmap * FromHBITMAP(HBITMAP hbm, HPALETTE hpal)
Bitmap * Clone(INT x, INT y, INT width, INT height, PixelFormat format)
Status GetPixel(INT x, INT y, Color *color)
Bitmap(INT width, INT height, INT stride, PixelFormat format, BYTE *scan0)
Bitmap(HINSTANCE hInstance, const WCHAR *bitmapName)
Status GetHICON(HICON *hicon)
Status LockBits(const Rect *rect, UINT flags, PixelFormat format, BitmapData *lockedBitmapData)
Status SetResolution(REAL xdpi, REAL ydpi)
Bitmap(INT width, INT height, PixelFormat format)
Bitmap * Clone(REAL x, REAL y, REAL width, REAL height, PixelFormat format)
Bitmap(HBITMAP hbm, HPALETTE hpal)
Status SetStatus(Status status) const
friend GpCachedBitmap *& getNat(const CachedBitmap *cb)
GpCachedBitmap * nativeCachedBitmap
CachedBitmap & operator=(const CachedBitmap &)
CachedBitmap(const CachedBitmap &)
CachedBitmap(Bitmap *bitmap, Graphics *graphics)
CustomLineCap(GpCustomLineCap *cap, Status status)
void SetNativeCap(GpCustomLineCap *cap)
CustomLineCap & operator=(const CustomLineCap &)
Status SetStrokeCap(LineCap strokeCap)
Status GetStrokeCaps(LineCap *startCap, LineCap *endCap)
GpCustomLineCap * nativeCap
Status SetStrokeJoin(LineJoin lineJoin)
Status SetStatus(Status status) const
Status SetWidthScale(IN REAL widthScale)
Status SetBaseInset(REAL inset)
Status SetStrokeCaps(LineCap startCap, LineCap endCap)
CustomLineCap(const CustomLineCap &)
Status SetBaseCap(LineCap baseCap)
friend GpCustomLineCap *& getNat(const CustomLineCap *cap)
FontCollection(const FontCollection &)
Status GetLastStatus() const
virtual ~FontCollection()
INT GetFamilyCount() const
friend GpFontCollection *& getNat(const FontCollection *fc)
FontCollection & operator=(const FontCollection &)
Status SetStatus(Status status) const
Status GetFamilies(INT numSought, FontFamily *gpfamilies, INT *numFound) const
GpFontCollection * nativeFontCollection
static const FontFamily * GenericSansSerif()
UINT16 GetCellDescent(INT style) const
static const FontFamily * GenericMonospace()
Status GetLastStatus() const
UINT16 GetCellAscent(INT style) const
FontFamily(const WCHAR *name, const FontCollection *fontCollection)
UINT16 GetEmHeight(INT style)
Status SetStatus(Status status) const
GpFontFamily * fontFamily
static const FontFamily * GenericSerif()
BOOL IsStyleAvailable(INT style) const
Status GetFamilyName(WCHAR name[LF_FACESIZE], WCHAR language) const
UINT16 GetLineSpacing(INT style) const
friend GpFontFamily *& getNat(const FontFamily *ff)
Status GetLogFontA(const Graphics *g, LOGFONTA *logfontA) const
Status GetLastStatus() const
Font(HDC hdc, const HFONT hfont)
friend GpFont *& getNat(const Font *font)
Font(HDC hdc, const LOGFONTW *logfont)
Font(HDC hdc, const LOGFONTA *logfont)
REAL GetHeight(REAL dpi) const
Status SetStatus(Status status) const
Status GetLogFontW(const Graphics *g, LOGFONTW *logfontW) const
Status GetFamily(FontFamily *family) const
Font(const WCHAR *familyName, REAL emSize, INT style, Unit unit, const FontCollection *fontCollection)
REAL GetHeight(const Graphics *graphics) const
Font(const FontFamily *family, REAL emSize, INT style, Unit unit)
Status GetPropertySize(UINT *totalBufferSize, UINT *numProperties)
Status SaveAdd(Image *newImage, const EncoderParameters *encoderParams)
Status GetFrameDimensionsList(GUID *dimensionIDs, UINT count)
void SetNativeImage(GpImage *image)
Status GetPalette(ColorPalette *palette, INT size)
Status GetAllPropertyItems(UINT totalBufferSize, UINT numProperties, PropertyItem *allItems)
Image(GpImage *image, Status status)
UINT GetFrameDimensionsCount()
Status SetPropertyItem(const PropertyItem *item)
Image(IStream *stream, BOOL useEmbeddedColorManagement=FALSE)
Status GetPropertyItem(PROPID propId, UINT propSize, PropertyItem *buffer)
friend GpImage *& getNat(const Image *image)
Status Save(const WCHAR *filename, const CLSID *clsidEncoder, const EncoderParameters *encoderParams)
Status SaveAdd(const EncoderParameters *encoderParams)
Status SetStatus(Status status) const
UINT GetPropertyItemSize(PROPID propId)
Status Save(IStream *stream, const CLSID *clsidEncoder, const EncoderParameters *encoderParams)
Status GetPropertyIdList(UINT numOfProperty, PROPID *list)
Status SetPalette(const ColorPalette *palette)
Status SelectActiveFrame(const GUID *dimensionID, UINT frameIndex)
PixelFormat GetPixelFormat()
Status RemovePropertyItem(PROPID propId)
Status GetRawFormat(GUID *format)
Status GetPhysicalDimension(SizeF *size)
REAL GetVerticalResolution()
UINT GetFrameCount(const GUID *dimensionID)
static Image * FromStream(IStream *stream, BOOL useEmbeddedColorManagement=FALSE)
Status RotateFlip(RotateFlipType rotateFlipType)
static Image * FromFile(const WCHAR *filename, BOOL useEmbeddedColorManagement=FALSE)
REAL GetHorizontalResolution()
Status GetBounds(RectF *srcRect, Unit *srcUnit)
Image * GetThumbnailImage(UINT thumbWidth, UINT thumbHeight, GetThumbnailImageAbort callback, VOID *callbackData)
UINT GetEncoderParameterListSize(const CLSID *clsidEncoder)
Status GetEncoderParameterList(const CLSID *clsidEncoder, UINT size, EncoderParameters *buffer)
Image & operator=(const Image &)
Image(const WCHAR *filename, BOOL useEmbeddedColorManagement=FALSE)
Status AddFontFile(const WCHAR *filename)
virtual ~PrivateFontCollection()
Status AddMemoryFont(const VOID *memory, INT length)
Status Union(const Region *region)
static Region * FromHRGN(HRGN hRgn)
Region(const BYTE *regionData, INT size)
Status GetRegionScans(const Matrix *matrix, RectF *rects, INT *count) const
BOOL IsVisible(const PointF &point, const Graphics *g) const
Status Exclude(const GraphicsPath *path)
Status Xor(const Region *region)
Status Union(const GraphicsPath *path)
Status GetBounds(RectF *rect, const Graphics *g) const
Status Translate(REAL dx, REAL dy)
Status Intersect(const GraphicsPath *path)
Status GetBounds(Rect *rect, const Graphics *g) const
BOOL IsVisible(INT x, INT y, const Graphics *g) const
Status Union(const RectF &rect)
Status Exclude(const Rect &rect)
Status Union(const Rect &rect)
Status Xor(const RectF &rect)
Region(const GraphicsPath *path)
Status Exclude(const RectF &rect)
HRGN GetHRGN(const Graphics *g) const
Status Transform(const Matrix *matrix)
Status Intersect(const Region *region)
Status Xor(const Rect &rect)
Status GetRegionScans(const Matrix *matrix, Rect *rects, INT *count) const
BOOL IsEmpty(const Graphics *g) const
Status Translate(INT dx, INT dy)
Status Intersect(const RectF &rect)
Region(const RectF &rect)
Status Intersect(const Rect &rect)
BOOL IsVisible(const RectF &rect, const Graphics *g) const
BOOL Equals(const Region *region, const Graphics *g) const
Status Complement(const Rect &rect)
Status Xor(const GraphicsPath *path)
Status Complement(const RectF &rect)
BOOL IsVisible(REAL x, REAL y, REAL width, REAL height, const Graphics *g) const
BOOL IsVisible(REAL x, REAL y, const Graphics *g) const
UINT GetRegionScansCount(const Matrix *matrix) const
Status Complement(const GraphicsPath *path)
Status Complement(const Region *region)
BOOL IsInfinite(const Graphics *g) const
Status SetStatus(Status status) const
Status Exclude(const Region *region)
BOOL IsVisible(const Point &point, const Graphics *g) const
friend GpRegion *& getNat(const Region *region)
BOOL IsVisible(const Rect &rect, const Graphics *g) const
Status GetData(BYTE *buffer, UINT bufferSize, UINT *sizeFilled) const
BOOL IsVisible(INT x, INT y, INT width, INT height, const Graphics *g) const
GpTexture * GetNativeTexture() const
DWORD WINAPI GetLayout(_In_ HDC hdc)
DWORD WINAPI SetLayout(_In_ HDC hdc, _In_ DWORD dwLayout)
ImageAbort GetThumbnailImageAbort
GLint GLint GLint GLint GLint x
GLuint GLuint GLsizei GLenum type
GLint GLint GLint GLint GLint GLint y
GLuint GLuint GLsizei count
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
GLuint GLsizei GLsizei * length
static IPrintDialogCallback callback
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static HMODULE MODULEINFO DWORD cb
static char memory[1024 *256]
static const CLSID IPropertyStorage UINT *static const PROPSPEC PROPVARIANT *static UINT const PROPSPEC PROPVARIANT PROPID
png_const_structrp png_const_inforp int * unit