ReactOS  0.4.13-dev-247-g0f29b3f
gdiplusheaders.h
Go to the documentation of this file.
1 /*
2  * GdiPlusHeaders.h
3  *
4  * Windows GDI+
5  *
6  * This file is part of the w32api package.
7  *
8  * THIS SOFTWARE IS NOT COPYRIGHTED
9  *
10  * This source code is offered for use in the public domain. You may
11  * use, modify or distribute it freely.
12  *
13  * This code is distributed in the hope that it will be useful but
14  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
15  * DISCLAIMED. This includes but is not limited to warranties of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17  */
18 
19 #ifndef _GDIPLUSHEADERS_H
20 #define _GDIPLUSHEADERS_H
21 
22 class Image : public GdiplusBase
23 {
24 public:
25  friend class Graphics;
26 
27  Image(IStream *stream, BOOL useEmbeddedColorManagement = FALSE)
28  {
29  if (useEmbeddedColorManagement)
31  else
33  }
34 
35  Image(const WCHAR *filename, BOOL useEmbeddedColorManagement = FALSE)
36  {
37  if (useEmbeddedColorManagement)
39  else
41  }
42 
44  {
45  Image *newImage = new Image();
46  SetStatus(DllExports::GdipCloneImage(image, newImage ? &newImage->image : NULL));
47  return newImage;
48  }
49 
50  static Image *FromFile(const WCHAR *filename, BOOL useEmbeddedColorManagement = FALSE)
51  {
52  return new Image(filename, useEmbeddedColorManagement);
53  }
54 
55  static Image *FromStream(IStream *stream, BOOL useEmbeddedColorManagement = FALSE)
56  {
57  return new Image(stream, useEmbeddedColorManagement);
58  }
59 
60  Status GetAllPropertyItems(UINT totalBufferSize, UINT numProperties, PropertyItem *allItems)
61  {
62  return SetStatus(DllExports::GdipGetAllPropertyItems(image, totalBufferSize, numProperties, allItems));
63  }
64 
65  Status GetBounds(RectF *srcRect, Unit *srcUnit)
66  {
67  return SetStatus(DllExports::GdipGetImageBounds(image, srcRect, srcUnit));
68  }
69 
71  {
72  return NotImplemented; // FIXME: not available: SetStatus(DllExports::GdipGetEncoderParameterList(image, clsidEncoder, size, buffer));
73  }
74 
75  UINT GetEncoderParameterListSize(const CLSID *clsidEncoder)
76  {
77  return 0; // FIXME: not available:
78 // UINT size;
79 // SetStatus(DllExports::GdipGetEncoderParameterListSize(image, clsidEncoder, &size));
80 // return size;
81  }
82 
84  {
85  UINT flags;
87  return flags;
88  }
89 
90  UINT GetFrameCount(const GUID *dimensionID)
91  {
92  UINT count;
94  return count;
95  }
96 
98  {
99  UINT count;
101  return count;
102  }
103 
105  {
107  }
108 
110  {
111  UINT height;
113  return height;
114  }
115 
117  {
118  REAL resolution;
120  return resolution;
121  }
122 
124  {
125  return status;
126  }
127 
129  {
131  }
132 
134  {
135  INT size;
137  return size;
138  }
139 
141  {
142  return SetStatus(DllExports::GdipGetImageDimension(image, size ? &size->Width : NULL, size ? &size->Height : NULL));
143  }
144 
146  {
149  return format;
150  }
151 
153  {
154  UINT numOfProperty;
156  return numOfProperty;
157  }
158 
160  {
161  return SetStatus(DllExports::GdipGetPropertyIdList(image, numOfProperty, list));
162  }
163 
165  {
166  return SetStatus(DllExports::GdipGetPropertyItem(image, propId, propSize, buffer));
167  }
168 
170  {
171  UINT size;
173  return size;
174  }
175 
176  Status GetPropertySize(UINT *totalBufferSize, UINT *numProperties)
177  {
178  return SetStatus(DllExports::GdipGetPropertySize(image, totalBufferSize, numProperties));
179  }
180 
182  {
184  }
185 
186  Image *GetThumbnailImage(UINT thumbWidth, UINT thumbHeight, GetThumbnailImageAbort callback, VOID *callbackData)
187  {
188  Image *thumbImage = new Image();
189  SetStatus(DllExports::GdipGetImageThumbnail(image, thumbWidth, thumbHeight, thumbImage ? &thumbImage->image : NULL, callback, callbackData));
190  return thumbImage;
191  }
192 
194  {
195  ImageType type;
197  return type;
198  }
199 
201  {
202  REAL resolution;
204  return resolution;
205  }
206 
208  {
209  UINT width;
211  return width;
212  }
213 
215  {
217  }
218 
220  {
221  return SetStatus(DllExports::GdipImageRotateFlip(image, rotateFlipType));
222  }
223 
224  Status Save(IStream *stream, const CLSID *clsidEncoder, const EncoderParameters *encoderParams)
225  {
226  return SetStatus(DllExports::GdipSaveImageToStream(image, stream, clsidEncoder, encoderParams));
227  }
228 
229  Status Save(const WCHAR *filename, const CLSID *clsidEncoder, const EncoderParameters *encoderParams)
230  {
231  return SetStatus(DllExports::GdipSaveImageToFile(image, filename, clsidEncoder, encoderParams));
232  }
233 
234  Status SaveAdd(const EncoderParameters* encoderParams)
235  {
236  return NotImplemented; // FIXME: not available: SetStatus(DllExports::GdipSaveAdd(image, encoderParams));
237  }
238 
239  Status SaveAdd(Image *newImage, const EncoderParameters *encoderParams)
240  {
241  return NotImplemented; // FIXME: not available: SetStatus(DllExports::GdipSaveAddImage(image, newImage ? newImage->image : NULL, encoderParams));
242  }
243 
244  Status SelectActiveFrame(const GUID *dimensionID, UINT frameIndex)
245  {
246  return SetStatus(DllExports::GdipImageSelectActiveFrame(image, dimensionID, frameIndex));
247  }
248 
250  {
252  }
253 
255  {
257  }
258 
259 protected:
261  {
262  }
263 
264 private:
265  mutable Status status;
267 
269  {
270  if (status == Ok)
271  return status;
272  this->status = status;
273  return status;
274  }
275 };
276 
277 
278 class Bitmap : public Image
279 {
280  friend class CachedBitmap;
281 
282 public:
283 // Bitmap(IDirectDrawSurface7 *surface) // <-- FIXME: compiler does not like this
284 // {
285 // status = DllExports::GdipCreateBitmapFromDirectDrawSurface(surface, &bitmap);
286 // }
287 
289  {
291  }
292 
293  Bitmap(const BITMAPINFO *gdiBitmapInfo, VOID *gdiBitmapData)
294  {
295  status = DllExports::GdipCreateBitmapFromGdiDib(gdiBitmapInfo, gdiBitmapData, &bitmap);
296  }
297 
299  {
300  }
301 
302  Bitmap(HBITMAP hbm, HPALETTE hpal)
303  {
305  }
306 
308  {
310  }
311 
312  Bitmap(const WCHAR *filename, BOOL useIcm)
313  {
314  if (useIcm)
316  else
318  }
319 
320  Bitmap(HINSTANCE hInstance, const WCHAR *bitmapName)
321  {
323  }
324 
325  Bitmap(HICON hicon)
326  {
328  }
329 
331  {
332  if (useIcm)
334  else
336  }
337 
339  {
340  Bitmap *dstBitmap = new Bitmap();
341  SetStatus(DllExports::GdipCloneBitmapAreaI(rect.X, rect.Y, rect.Width, rect.Height, format, bitmap, dstBitmap ? &dstBitmap->bitmap : NULL));
342  return dstBitmap;
343  }
344 
346  {
347  Bitmap *dstBitmap = new Bitmap();
348  SetStatus(DllExports::GdipCloneBitmapArea(rect.X, rect.Y, rect.Width, rect.Height, format, bitmap, dstBitmap ? &dstBitmap->bitmap : NULL));
349  return dstBitmap;
350  }
351 
353  {
354  Bitmap *dstBitmap = new Bitmap();
355  SetStatus(DllExports::GdipCloneBitmapArea(x, y, width, height, format, bitmap, dstBitmap ? &dstBitmap->bitmap : NULL));
356  return dstBitmap;
357  }
358 
360  {
361  Bitmap *dstBitmap = new Bitmap();
362  SetStatus(DllExports::GdipCloneBitmapAreaI(x, y, width, height, format, bitmap, dstBitmap ? &dstBitmap->bitmap : NULL));
363  return dstBitmap;
364  }
365 
366  static Bitmap *FromBITMAPINFO(const BITMAPINFO *gdiBitmapInfo, VOID *gdiBitmapData)
367  {
368  return new Bitmap(gdiBitmapInfo, gdiBitmapData);
369  }
370 
371 // static Bitmap *FromDirectDrawSurface7(IDirectDrawSurface7 *surface) // <-- FIXME: compiler does not like this
372 // {
373 // return new Bitmap(surface);
374 // }
375 
376  static Bitmap *FromFile(const WCHAR *filename, BOOL useEmbeddedColorManagement)
377  {
378  return new Bitmap(filename, useEmbeddedColorManagement);
379  }
380 
381  static Bitmap *FromHBITMAP(HBITMAP hbm, HPALETTE hpal)
382  {
383  return new Bitmap(hbm, hpal);
384  }
385 
386  static Bitmap *FromHICON(HICON hicon)
387  {
388  return new Bitmap(hicon);
389  }
390 
391  static Bitmap *FromResource(HINSTANCE hInstance, const WCHAR *bitmapName)
392  {
393  return new Bitmap(hInstance, bitmapName);
394  }
395 
396  static Bitmap *FromStream(IStream *stream, BOOL useEmbeddedColorManagement)
397  {
398  return new Bitmap(stream, useEmbeddedColorManagement);
399  }
400 
401  Status GetHBITMAP(const Color &colorBackground, HBITMAP *hbmReturn)
402  {
403  return SetStatus(DllExports::GdipCreateHBITMAPFromBitmap(bitmap, hbmReturn, colorBackground.GetValue()));
404  }
405 
407  {
409  }
410 
412  {
413  ARGB argb;
415  if (color != NULL)
416  color->SetValue(argb);
417  return s;
418  }
419 
421  {
422  return SetStatus(DllExports::GdipBitmapLockBits(bitmap, rect, flags, format, lockedBitmapData));
423  }
424 
426  {
427  return SetStatus(DllExports::GdipBitmapSetPixel(bitmap, x, y, color.GetValue()));
428  }
429 
431  {
433  }
434 
435  Status UnlockBits(BitmapData *lockedBitmapData)
436  {
437  return SetStatus(DllExports::GdipBitmapUnlockBits(bitmap, lockedBitmapData));
438  }
439 
440 protected:
442  {
443  }
444 
445 private:
446  mutable Status status;
448 
450  {
451  if (status == Ok)
452  return status;
453  this->status = status;
454  return status;
455  }
456 };
457 
458 
459 class CachedBitmap : public GdiplusBase
460 {
461 public:
463  {
464  status = DllExports::GdipCreateCachedBitmap(bitmap->bitmap, graphics ? graphics->graphics : NULL, &cachedBitmap);
465  }
466 
468  {
469  return status;
470  }
471 
472 private:
473  mutable Status status;
475 };
476 
477 
479 {
480  friend class FontFamily;
481 
482 public:
484  {
485  }
486 
487  Status GetFamilies(INT numSought, FontFamily *gpfamilies, INT *numFound) const
488  {
489  return NotImplemented;
490  }
491 
493  {
494  return 0;
495  }
496 
498  {
499  return NotImplemented;
500  }
501 
502 private:
504 };
505 
506 
507 class FontFamily : public GdiplusBase
508 {
509  friend class Font;
510 
511 public:
513  {
514  }
515 
516  FontFamily(const WCHAR *name, const FontCollection *fontCollection)
517  {
518  status = DllExports::GdipCreateFontFamilyFromName(name, fontCollection ? fontCollection->fontCollection : NULL, &fontFamily);
519  }
520 
522  {
523  return NULL;
524  }
525 
527  {
528  FontFamily *genericMonospace = new FontFamily();
529  genericMonospace->status = DllExports::GdipGetGenericFontFamilyMonospace(genericMonospace ? &genericMonospace->fontFamily : NULL);
530  return genericMonospace;
531  }
532 
534  {
535  FontFamily *genericSansSerif = new FontFamily();
536  genericSansSerif->status = DllExports::GdipGetGenericFontFamilySansSerif(genericSansSerif ? &genericSansSerif->fontFamily : NULL);
537  return genericSansSerif;
538  }
539 
540  static const FontFamily *GenericSerif(VOID)
541  {
542  FontFamily *genericSerif = new FontFamily();
543  genericSerif->status = DllExports::GdipGetGenericFontFamilyMonospace(genericSerif ? &genericSerif->fontFamily : NULL);
544  return genericSerif;
545  }
546 
548  {
549  UINT16 CellAscent;
551  return CellAscent;
552  }
553 
555  {
556  UINT16 CellDescent;
558  return CellDescent;
559  }
560 
562  {
563  UINT16 EmHeight;
565  return EmHeight;
566  }
567 
569  {
571  }
572 
574  {
575  return status;
576  }
577 
579  {
580  UINT16 LineSpacing;
582  return LineSpacing;
583  }
584 
586  {
587  return FALSE;
588  }
589 
591  {
592  BOOL StyleAvailable;
594  return StyleAvailable;
595  }
596 
597 private:
598  mutable Status status;
600 
602  {
603  if (status == Ok)
604  return status;
605  this->status = status;
606  return status;
607  }
608 };
609 
610 
612 {
613 public:
615  {
616  }
617 };
618 
619 
621 {
622 public:
624  {
625  }
626 
628  {
629  return NotImplemented;
630  }
631 
633  {
634  return NotImplemented;
635  }
636 };
637 
638 
639 class Font : public GdiplusBase
640 {
641 public:
642  friend class FontFamily;
643  friend class FontCollection;
644  friend class Graphics;
645 
646  Font(const FontFamily *family, REAL emSize, INT style, Unit unit)
647  {
649  }
650 
652  {
653  }
654 
655  Font(HDC hdc, const LOGFONTA *logfont)
656  {
658  }
659 
660  Font(HDC hdc, const LOGFONTW *logfont)
661  {
663  }
664 
665  Font(const WCHAR *familyName, REAL emSize, INT style, Unit unit, const FontCollection *fontCollection)
666  {
667  }
668 
670  {
672  }
673 
674  Font *Clone(VOID) const
675  {
676  Font *cloneFont = new Font();
677  cloneFont->status = DllExports::GdipCloneFont(font, cloneFont ? &cloneFont->font : NULL);
678  return cloneFont;
679  }
680 
681  Status GetFamily(FontFamily* family) const
682  {
683  return SetStatus(DllExports::GdipGetFamily(font, family ? &family->fontFamily : NULL));
684  }
685 
687  {
688  REAL height;
690  return height;
691  }
692 
694  {
695  REAL height;
697  return height;
698  }
699 
701  {
702  return status;
703  }
704 
705  Status GetLogFontA(const Graphics *g, LOGFONTA *logfontA) const
706  {
707  return SetStatus(DllExports::GdipGetLogFontA(font, g ? g->graphics : NULL, logfontA));
708  }
709 
710  Status GetLogFontW(const Graphics *g, LOGFONTW *logfontW) const
711  {
712  return SetStatus(DllExports::GdipGetLogFontW(font, g ? g->graphics : NULL, logfontW));
713  }
714 
716  {
717  REAL size;
719  return size;
720  }
721 
723  {
724  INT style;
726  return style;
727  }
728 
730  {
731  Unit unit;
733  return unit;
734  }
735 
737  {
738  return FALSE;
739  }
740 
741 protected:
743  {
744  }
745 
746 private:
747  mutable Status status;
749 
751  {
752  if (status == Ok)
753  return status;
754  this->status = status;
755  return status;
756  }
757 };
758 
759 
760 class Region : public GdiplusBase
761 {
762 public:
763  friend class Graphics;
764  friend class GraphicsPath;
765  friend class Matrix;
766 
767  Region(const Rect &rect)
768  {
770  }
771 
773  {
775  }
776 
777  Region(const BYTE *regionData, INT size)
778  {
780  }
781 
783  {
785  }
786 
787  Region(HRGN hRgn)
788  {
790  }
791 
792  Region(const RectF &rect)
793  {
795  }
796 
798  {
799  Region *cloneRegion = new Region();
800  cloneRegion->status = DllExports::GdipCloneRegion(region, cloneRegion ? &cloneRegion->region : NULL);
801  return cloneRegion;
802  }
803 
805  {
807  }
808 
810  {
812  }
813 
815  {
817  }
818 
820  {
822  }
823 
824  BOOL Equals(const Region *region, const Graphics *g) const
825  {
826  BOOL result;
827  SetStatus(DllExports::GdipIsEqualRegion(this->region, region ? region->region : NULL, g ? g->graphics : NULL, &result));
828  return result;
829  }
830 
832  {
834  }
835 
837  {
839  }
840 
842  {
844  }
845 
847  {
849  }
850 
851  static Region *FromHRGN(HRGN hRgn)
852  {
853  return new Region(hRgn);
854  }
855 
856  Status GetBounds(Rect *rect, const Graphics *g) const
857  {
858  return SetStatus(DllExports::GdipGetRegionBoundsI(region, g ? g->graphics : NULL, rect));
859  }
860 
862  {
863  return SetStatus(DllExports::GdipGetRegionBounds(region, g ? g->graphics : NULL, rect));
864  }
865 
866  Status GetData(BYTE *buffer, UINT bufferSize, UINT *sizeFilled) const
867  {
868  return SetStatus(DllExports::GdipGetRegionData(region, buffer, bufferSize, sizeFilled));
869  }
870 
872  {
873  UINT bufferSize;
875  return bufferSize;
876  }
877 
878  HRGN GetHRGN(const Graphics *g) const
879  {
880  HRGN hRgn;
882  return hRgn;
883  }
884 
886  {
887  return status;
888  }
889 
890  Status GetRegionScans(const Matrix *matrix, Rect *rects, INT *count) const
891  {
893  }
894 
895  Status GetRegionScans(const Matrix *matrix, RectF *rects, INT *count) const
896  {
897  return SetStatus(DllExports::GdipGetRegionScans(region, rects, count, matrix ? matrix->matrix : NULL));
898  }
899 
901  {
902  UINT count;
904  return count;
905  }
906 
908  {
910  }
911 
913  {
915  }
916 
918  {
920  }
921 
923  {
925  }
926 
927  BOOL IsEmpty(const Graphics *g) const
928  {
929  BOOL result;
931  return result;
932  }
933 
934  BOOL IsInfinite(const Graphics *g) const
935  {
936  BOOL result;
938  return result;
939  }
940 
941  BOOL IsVisible(const PointF &point, const Graphics *g) const
942  {
943  BOOL result;
945  return result;
946  }
947 
948  BOOL IsVisible(const RectF &rect, const Graphics *g) const
949  {
950  BOOL result;
951  SetStatus(DllExports::GdipIsVisibleRegionRect(region, rect.X, rect.Y, rect.Width, rect.Height, g ? g->graphics : NULL, &result));
952  return result;
953  }
954 
955  BOOL IsVisible(const Rect &rect, const Graphics *g) const
956  {
957  BOOL result;
958  SetStatus(DllExports::GdipIsVisibleRegionRectI(region, rect.X, rect.Y, rect.Width, rect.Height, g ? g->graphics : NULL, &result));
959  return result;
960  }
961 
962  BOOL IsVisible(INT x, INT y, const Graphics *g) const
963  {
964  BOOL result;
966  return result;
967  }
968 
969  BOOL IsVisible(REAL x, REAL y, const Graphics *g) const
970  {
971  BOOL result;
973  return result;
974  }
975 
977  {
978  BOOL result;
980  return result;
981  }
982 
983  BOOL IsVisible(const Point &point, const Graphics *g) const
984  {
985  BOOL result;
987  return result;
988  }
989 
991  {
992  BOOL result;
994  return result;
995  }
996 
998  {
1000  }
1001 
1003  {
1005  }
1006 
1008  {
1010  }
1011 
1013  {
1015  }
1016 
1018  {
1020  }
1021 
1023  {
1025  }
1026 
1028  {
1030  }
1031 
1033  {
1035  }
1036 
1038  {
1040  }
1041 
1043  {
1045  }
1046 
1048  {
1050  }
1051 
1053  {
1055  }
1056 
1058  {
1059  return SetStatus(DllExports::GdipCombineRegionRegion(this->region, region ? region->region : NULL, CombineModeXor));
1060  }
1061 
1062 private:
1063  mutable Status status;
1065 
1067  {
1068  if (status == Ok)
1069  return status;
1070  this->status = status;
1071  return status;
1072  }
1073 };
1074 
1075 
1077 {
1078 public:
1079  CustomLineCap(const GraphicsPath *fillPath, const GraphicsPath *strokePath, LineCap baseCap, REAL baseInset);
1084  Status GetStrokeCaps(LineCap *startCap, LineCap *endCap);
1087  Status SetBaseCap(LineCap baseCap);
1088  Status SetBaseInset(REAL inset);
1089  Status SetStrokeCap(LineCap strokeCap);
1090  Status SetStrokeCaps(LineCap startCap, LineCap endCap);
1091  Status SetStrokeJoin(LineJoin lineJoin);
1092  Status SetWidthScale(IN REAL widthScale);
1093 protected:
1094  CustomLineCap();
1095 };
1096 
1097 #endif /* _GDIPLUSHEADERS_H */
Bitmap(HICON hicon)
INT GetFamilyCount(VOID) const
GpStatus WINGDIPAPI GdipIsEmptyRegion(GpRegion *region, GpGraphics *graphics, BOOL *res)
Definition: region.c:1204
Font(const WCHAR *familyName, REAL emSize, INT style, Unit unit, const FontCollection *fontCollection)
GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream *stream, GpImage **image)
Definition: image.c:4392
UINT GetPropertyCount(VOID)
GpStatus WINGDIPAPI GdipCombineRegionRect(GpRegion *region, GDIPCONST GpRectF *rect, CombineMode mode)
Definition: region.c:278
Status LockBits(const Rect *rect, UINT flags, PixelFormat format, BitmapData *lockedBitmapData)
UINT GetFrameDimensionsCount(VOID)
GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace(GpFontFamily **nativeFamily)
Definition: font.c:1010
GpStatus WINGDIPAPI GdipGetAllPropertyItems(GpImage *image, UINT size, UINT count, PropertyItem *buf)
Definition: image.c:2757
GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics, LOGFONTW *lf)
Definition: font.c:455
Unit GetUnit(VOID) const
GpBitmap * bitmap
GpCachedBitmap * cachedBitmap
Status GetData(BYTE *buffer, UINT bufferSize, UINT *sizeFilled) const
#define IN
Definition: typedefs.h:38
GLint GLint GLsizei width
Definition: gl.h:1546
Status RotateFlip(RotateFlipType rotateFlipType)
BOOL IsVisible(INT x, INT y, const Graphics *g) const
Status SetPalette(const ColorPalette *palette)
static HICON
Definition: imagelist.c:84
UINT16 GetCellDescent(INT style) const
Status Intersect(const RectF &rect)
Status Intersect(const GraphicsPath *path)
Status Intersect(const Region *region)
GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
Definition: font.c:286
#define LF_FACESIZE
Definition: dimm.idl:39
GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image, GDIPCONST GUID *dimensionID, UINT *count)
Definition: image.c:2865
GpRegion * region
Bitmap * Clone(const Rect &rect, PixelFormat format)
UINT GetRegionScansCount(const Matrix *matrix) const
GpStatus WINGDIPAPI GdipCombineRegionRectI(GpRegion *region, GDIPCONST GpRect *rect, CombineMode mode)
Definition: region.c:325
static Bitmap * FromFile(const WCHAR *filename, BOOL useEmbeddedColorManagement)
GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc, GDIPCONST LOGFONTW *logfont, GpFont **font)
Definition: font.c:203
Status GetLogFontW(const Graphics *g, LOGFONTW *logfontW) const
GpStatus WINGDIPAPI GdipCreateBitmapFromStreamICM(IStream *stream, GpBitmap **bitmap)
Definition: image.c:1922
GpStatus WINGDIPAPI GdipRemovePropertyItem(GpImage *image, PROPID propId)
Definition: image.c:4399
GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size, UINT *needed)
Definition: region.c:747
GpStatus WINGDIPAPI GdipLoadImageFromFile(GDIPCONST WCHAR *filename, GpImage **image)
Definition: image.c:2928
GpStatus WINGDIPAPI GdipGetImageType(GpImage *image, ImageType *type)
Definition: image.c:2318
Unit
Definition: gdiplusenums.h:25
GpStatus WINGDIPAPI GdipCreateBitmapFromStream(IStream *stream, GpBitmap **bitmap)
Definition: image.c:1900
Status GetRegionScans(const Matrix *matrix, Rect *rects, INT *count) const
GpStatus WINGDIPAPI GdipSetPropertyItem(GpImage *image, GDIPCONST PropertyItem *item)
Definition: image.c:4414
BOOL IsVisible(const PointF &point, const Graphics *g) const
GpImage * image
Definition: mk_font.cpp:20
Status SetPixel(INT x, INT y, const Color &color)
GpStatus WINGDIPAPI GdipGetImageBounds(GpImage *image, GpRectF *srcRect, GpUnit *srcUnit)
Definition: image.c:2148
Status SetStatus(Status status) const
UINT GetFlags(VOID)
GpStatus WINGDIPAPI GdipGetImageWidth(GpImage *image, UINT *width)
Definition: image.c:2342
Font(const FontFamily *family, REAL emSize, INT style, Unit unit)
static Bitmap * FromHBITMAP(HBITMAP hbm, HPALETTE hpal)
GLuint GLenum matrix
Definition: glext.h:9407
GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage *image, REAL *res)
Definition: image.c:2330
Status SaveAdd(const EncoderParameters *encoderParams)
GpStatus WINGDIPAPI GdipGetRegionScansI(GpRegion *region, GpRect *scans, INT *count, GpMatrix *matrix)
Definition: region.c:1622
GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *region, GpGraphics *graphics, HRGN *hrgn)
Definition: region.c:1194
REAL GetSize(VOID) const
BOOL IsAvailable(VOID) const
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint dy
Definition: linetemp.h:97
GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
Definition: font.c:417
Bitmap * Clone(INT x, INT y, INT width, INT height, PixelFormat format)
GpStatus WINGDIPAPI GdipGetImagePalette(GpImage *image, ColorPalette *palette, INT size)
Definition: image.c:4662
GpStatus WINGDIPAPI GdipCreateHICONFromBitmap(GpBitmap *bitmap, HICON *hicon)
Definition: image.c:1953
Status Intersect(const Rect &rect)
GpStatus WINGDIPAPI GdipGetPropertyItemSize(GpImage *image, PROPID propid, UINT *size)
Definition: image.c:2488
static Region * FromHRGN(HRGN hRgn)
UINT GetDataSize(VOID) const
HRGN GetHRGN(const Graphics *g) const
static HDC
Definition: imagelist.c:92
GpStatus WINGDIPAPI GdipGetLogFontA(GpFont *font, GpGraphics *graphics, LOGFONTA *lfa)
Definition: font.c:432
Status GetBounds(Rect *rect, const Graphics *g) const
GpStatus WINGDIPAPI GdipIsVisibleRegionPoint(GpRegion *region, REAL x, REAL y, GpGraphics *graphics, BOOL *res)
Definition: region.c:1320
BOOL IsVisible(REAL x, REAL y, REAL width, REAL height, const Graphics *g) const
GpStatus WINGDIPAPI GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, GpBitmap **bitmap)
Definition: image.c:5104
Image(IStream *stream, BOOL useEmbeddedColorManagement=FALSE)
Font(HDC hdc, const HFONT hfont)
GpStatus WINGDIPAPI GdipIsEqualRegion(GpRegion *region, GpRegion *region2, GpGraphics *graphics, BOOL *res)
Definition: region.c:1226
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipCreateBitmapFromGdiDib(GDIPCONST BITMAPINFO *info, VOID *bits, GpBitmap **bitmap)
Definition: image.c:1385
static HRGN hRgn
Definition: mapping.c:33
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipCreateRegionHrgn(HRGN hrgn, GpRegion **region)
Definition: region.c:506
Status GetPropertyIdList(UINT numOfProperty, PROPID *list)
Status GetLastStatus(VOID) const
GLuint buffer
Definition: glext.h:5915
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GpStatus WINGDIPAPI GdipBitmapSetPixel(GpBitmap *bitmap, INT x, INT y, ARGB color)
Definition: image.c:494
GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage *image, REAL *res)
Definition: image.c:2261
LineJoin
Definition: gdiplusenums.h:103
Region(const BYTE *regionData, INT size)
Status SetPropertyItem(const PropertyItem *item)
GpStatus WINGDIPAPI GdipCombineRegionPath(GpRegion *region, GpPath *path, CombineMode mode)
Definition: region.c:232
Bitmap * Clone(REAL x, REAL y, REAL width, REAL height, PixelFormat format)
GpFontCollection * fontCollection
GpStatus WINGDIPAPI GdipGetImageFlags(GpImage *image, UINT *flags)
Definition: image.c:5266
Status GetLastStatus(VOID) const
GpStatus WINGDIPAPI GdipCloneImage(GpImage *image, GpImage **cloneImage)
Definition: image.c:1308
FontFamily(VOID)
FontFamily(const WCHAR *name, const FontCollection *fontCollection)
static const CLSID IPropertyStorage UINT *static const PROPSPEC PROPVARIANT *static UINT const PROPSPEC PROPVARIANT PROPID
Definition: shellole.c:77
GpStatus WINGDIPAPI GdipSaveImageToFile(GpImage *image, GDIPCONST WCHAR *filename, GDIPCONST CLSID *clsidEncoder, GDIPCONST EncoderParameters *encoderParams)
Definition: image.c:4428
const char * filename
Definition: ioapi.h:135
static Bitmap * FromStream(IStream *stream, BOOL useEmbeddedColorManagement)
Status GetLogFontA(const Graphics *g, LOGFONTA *logfontA) const
GpStatus WINGDIPAPI GdipGetPropertyCount(GpImage *image, UINT *num)
Definition: image.c:2364
GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *region)
Definition: region.c:1374
static char memory[1024 *256]
Definition: process.c:116
int32_t INT
Definition: typedefs.h:56
GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *region)
Definition: region.c:1359
GpStatus WINGDIPAPI GdipGetRegionBoundsI(GpRegion *region, GpGraphics *graphics, GpRect *rect)
Definition: region.c:629
POINTL point
Definition: edittest.c:50
& rect
Definition: startmenu.cpp:1413
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
BOOL IsVisible(const RectF &rect, const Graphics *g) const
GpStatus WINGDIPAPI GdipCloneRegion(GpRegion *region, GpRegion **clone)
Definition: region.c:211
Status Union(const Region *region)
Status GetFamilyName(WCHAR name[LF_FACESIZE], WCHAR language) const
UINT GetPropertyItemSize(PROPID propId)
Status Union(const Rect &rect)
Status GetLastStatus(VOID)
LineCap GetBaseCap(VOID)
Status GetBounds(RectF *rect, const Graphics *g) const
GpStatus WINGDIPAPI GdipIsInfiniteRegion(GpRegion *region, GpGraphics *graphics, BOOL *res)
Definition: region.c:1261
INT GetStyle(VOID) const
Region(VOID)
Status GetPixel(INT x, INT y, Color *color)
UINT GetFrameCount(const GUID *dimensionID)
GpStatus WINGDIPAPI GdipImageRotateFlip(GpImage *image, RotateFlipType type)
Definition: image.c:5358
GpStatus WINGDIPAPI GdipBitmapGetPixel(GpBitmap *bitmap, INT x, INT y, ARGB *color)
Definition: image.c:288
GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamily)
Definition: font.c:1074
GpFontFamily * fontFamily
GpStatus WINGDIPAPI GdipGetRegionScansCount(GpRegion *region, UINT *count, GpMatrix *matrix)
Definition: region.c:1601
Font(HDC hdc)
Font(HDC hdc, const LOGFONTW *logfont)
HINSTANCE hInstance
Definition: charmap.c:20
GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream *stream, GpImage **image)
Definition: image.c:4357
GpStatus WINGDIPAPI GdipCreateRegionRectI(GDIPCONST GpRect *rect, GpRegion **region)
Definition: region.c:488
GpStatus WINGDIPAPI GdipGetImageHeight(GpImage *image, UINT *height)
Definition: image.c:2239
GpStatus WINGDIPAPI GdipCreateFont(GDIPCONST GpFontFamily *fontFamily, REAL emSize, INT style, Unit unit, GpFont **font)
Definition: font.c:144
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint color
Definition: glext.h:6243
Status Xor(const Region *region)
GpStatus WINGDIPAPI GdipCreateBitmapFromFileICM(GDIPCONST WCHAR *filename, GpBitmap **bitmap)
Definition: image.c:1436
GpStatus WINGDIPAPI GdipCloneBitmapAreaI(INT x, INT y, INT width, INT height, PixelFormat format, GpBitmap *srcBitmap, GpBitmap **dstBitmap)
Definition: image.c:1300
GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap *bitmap, GDIPCONST GpRect *rect, UINT flags, PixelFormat format, BitmapData *lockeddata)
Definition: image.c:1030
REAL GetHorizontalResolution(VOID)
BOOL Equals(const Region *region, const Graphics *g) const
Status GetLastStatus(VOID)
Status status
Status SetBaseCap(LineCap baseCap)
Status Xor(const GraphicsPath *path)
Status GetFamily(FontFamily *family) const
GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family, INT style, UINT16 *CellAscent)
Definition: font.c:880
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
UINT16 GetLineSpacing(INT style) const
smooth NULL
Definition: ftsmooth.c:416
BOOL IsVisible(REAL x, REAL y, const Graphics *g) const
Status GetPropertyItem(PROPID propId, UINT propSize, PropertyItem *buffer)
Bitmap(IStream *stream, BOOL useIcm)
GpStatus WINGDIPAPI GdipGetFontSize(GpFont *font, REAL *size)
Definition: font.c:350
Status Complement(const Rect &rect)
GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage *image, GUID *format)
Definition: image.c:2306
Status GetPalette(ColorPalette *palette, INT size)
GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride, PixelFormat format, BYTE *scan0, GpBitmap **bitmap)
Definition: image.c:1760
Status Complement(const Region *region)
CachedBitmap(Bitmap *bitmap, Graphics *graphics)
Status GetRegionScans(const Matrix *matrix, RectF *rects, INT *count) const
FontFamily * Clone(VOID)
Status SetStrokeJoin(LineJoin lineJoin)
REAL GetWidthScale(VOID)
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name, GpFontCollection *fontCollection, GpFontFamily **FontFamily)
Definition: font.c:746
UINT GetEncoderParameterListSize(const CLSID *clsidEncoder)
REAL GetBaseInset(VOID)
BOOL IsInfinite(const Graphics *g) const
static HFONT hfont
BOOL IsVisible(INT x, INT y, INT width, INT height, const Graphics *g) const
Status SetStrokeCaps(LineCap startCap, LineCap endCap)
GpStatus WINGDIPAPI GdipCreateBitmapFromResource(HINSTANCE hInstance, GDIPCONST WCHAR *lpBitmapName, GpBitmap **bitmap)
Definition: image.c:1444
GpStatus WINGDIPAPI GdipCreateBitmapFromHICON(HICON hicon, GpBitmap **bitmap)
Definition: image.c:1564
PixelFormat GetPixelFormat(VOID)
Status SetStatus(Status status) const
Definition: uimain.c:88
GpStatus WINGDIPAPI GdipCloneBitmapArea(REAL x, REAL y, REAL width, REAL height, PixelFormat format, GpBitmap *srcBitmap, GpBitmap **dstBitmap)
Definition: image.c:1237
#define dpi
Definition: sysparams.c:22
Status GetFamilies(INT numSought, FontFamily *gpfamilies, INT *numFound) const
GLboolean GLboolean g
Definition: glext.h:6204
GpStatus WINGDIPAPI GdipGetImagePixelFormat(GpImage *image, PixelFormat *format)
Definition: image.c:2291
Region * Clone(VOID)
GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap *bitmap, BitmapData *lockeddata)
Definition: image.c:1176
GpStatus WINGDIPAPI GdipImageSelectActiveFrame(GpImage *image, GDIPCONST GUID *dimensionID, UINT frame)
Definition: image.c:4302
MmuTrapHandler callback[0x30]
Definition: mmuobject.c:44
GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc, GDIPCONST LOGFONTA *lfa, GpFont **font)
Definition: font.c:249
GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **region)
Definition: region.c:390
Status Translate(INT dx, INT dy)
static const FontFamily * GenericSansSerif(VOID)
GLsizei stride
Definition: glext.h:5848
REAL GetHeight(REAL dpi) const
GLsizeiptr size
Definition: glext.h:5919
GpStatus WINGDIPAPI GdipIsVisibleRegionPointI(GpRegion *region, INT x, INT y, GpGraphics *graphics, BOOL *res)
Definition: region.c:1349
__wchar_t WCHAR
Definition: xmlstorage.h:180
REAL GetHeight(const Graphics *graphics) const
static Bitmap * FromBITMAPINFO(const BITMAPINFO *gdiBitmapInfo, VOID *gdiBitmapData)
Bitmap * Clone(const RectF &rect, PixelFormat format)
Status GetRawFormat(GUID *format)
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
GpStatus WINGDIPAPI GdipGetRegionDataSize(GpRegion *region, UINT *needed)
Definition: region.c:985
Status status
Status GetLastStatus(VOID)
GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage *image, IStream *stream, GDIPCONST CLSID *clsid, GDIPCONST EncoderParameters *params)
Definition: image.c:4623
GpStatus WINGDIPAPI GdipGetLineSpacing(GDIPCONST GpFontFamily *family, INT style, UINT16 *LineSpacing)
Definition: font.c:945
Bitmap(const WCHAR *filename, BOOL useIcm)
Status GetHICON(HICON *hicon)
UINT16 GetEmHeight(INT style)
BOOL IsAvailable(VOID) const
LineCap
Definition: gdiplusenums.h:59
Status Save(IStream *stream, const CLSID *clsidEncoder, const EncoderParameters *encoderParams)
Region(const GraphicsPath *path)
ImageType GetType(VOID)
Status GetPhysicalDimension(SizeF *size)
Status Exclude(const Region *region)
Image(const WCHAR *filename, BOOL useEmbeddedColorManagement=FALSE)
GpStatus WINGDIPAPI GdipGetFontHeight(GDIPCONST GpFont *font, GDIPCONST GpGraphics *graphics, REAL *height)
Definition: font.c:552
GpStatus WINGDIPAPI GdipCloneFont(GpFont *font, GpFont **cloneFont)
Definition: font.c:520
GpStatus WINGDIPAPI GdipGetPropertyItem(GpImage *image, PROPID propid, UINT size, PropertyItem *buffer)
Definition: image.c:2634
GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family, INT style, UINT16 *CellDescent)
Definition: font.c:891
GpStatus WINGDIPAPI GdipIsVisibleRegionRectI(GpRegion *region, INT x, INT y, INT w, INT h, GpGraphics *graphics, BOOL *res)
Definition: region.c:1308
Status Union(const GraphicsPath *path)
GLbitfield flags
Definition: glext.h:7161
Status GetStrokeCaps(LineCap *startCap, LineCap *endCap)
GpStatus WINGDIPAPI GdipGetFontStyle(GpFont *font, INT *style)
Definition: font.c:393
GpStatus WINGDIPAPI GdipCreateHBITMAPFromBitmap(GpBitmap *bitmap, HBITMAP *hbmReturn, ARGB background)
Definition: image.c:1479
GpStatus WINGDIPAPI GdipGetPropertyIdList(GpImage *image, UINT num, PROPID *list)
Definition: image.c:2387
Bitmap(INT width, INT height, INT stride, PixelFormat format, BYTE *scan0)
Status GetAllPropertyItems(UINT totalBufferSize, UINT numProperties, PropertyItem *allItems)
GpStatus WINGDIPAPI GdipTranslateRegion(GpRegion *region, REAL dx, REAL dy)
Definition: region.c:1520
GpStatus WINGDIPAPI GdipGetImageThumbnail(GpImage *image, UINT width, UINT height, GpImage **ret_image, GetThumbnailImageAbort cb, VOID *cb_data)
Definition: image.c:5309
INT PixelFormat
GpStatus WINGDIPAPI GdipTransformRegion(GpRegion *region, GpMatrix *matrix)
Definition: region.c:1480
Font * Clone(VOID) const
Definition: parse.h:22
HDC hdc
Definition: main.c:9
BOOL IsStyleAvailable(INT style) const
GpStatus WINGDIPAPI GdipCreateBitmapFromGraphics(INT width, INT height, GpGraphics *target, GpBitmap **bitmap)
Definition: image.c:1542
GpStatus WINGDIPAPI GdipLoadImageFromFileICM(GDIPCONST WCHAR *filename, GpImage **image)
Definition: image.c:2954
Status Save(const WCHAR *filename, const CLSID *clsidEncoder, const EncoderParameters *encoderParams)
unsigned char BYTE
Definition: mem.h:68
GLdouble s
Definition: gl.h:2039
Definition: _list.h:228
REAL GetVerticalResolution(VOID)
Status status
Status AddFontFile(const WCHAR *filename)
Region(HRGN hRgn)
static Bitmap * FromResource(HINSTANCE hInstance, const WCHAR *bitmapName)
GpStatus WINGDIPAPI GdipCreateBitmapFromFile(GDIPCONST WCHAR *filename, GpBitmap **bitmap)
Definition: image.c:1360
GpStatus WINGDIPAPI GdipGetRegionBounds(GpRegion *region, GpGraphics *graphics, GpRectF *rect)
Definition: region.c:587
static HPALETTE palette
Definition: clipboard.c:1345
Bitmap(const BITMAPINFO *gdiBitmapInfo, VOID *gdiBitmapData)
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GpFont * font
GpGraphics * graphics
GpStatus WINGDIPAPI GdipGetFamilyName(GDIPCONST GpFontFamily *family, WCHAR *name, LANGID language)
Definition: font.c:837
Status
Definition: gdiplustypes.h:24
Status GetEncoderParameterList(const CLSID *clsidEncoder, UINT size, EncoderParameters *buffer)
BOOL IsEmpty(const Graphics *g) const
CustomLineCap * Clone(VOID)
Status SetStatus(Status status) const
ImageAbort GetThumbnailImageAbort
Definition: gdiplustypes.h:56
Status MakeEmpty(VOID)
Status SelectActiveFrame(const GUID *dimensionID, UINT frameIndex)
Image * GetThumbnailImage(UINT thumbWidth, UINT thumbHeight, GetThumbnailImageAbort callback, VOID *callbackData)
Region(const Rect &rect)
BOOL IsVisible(const Point &point, const Graphics *g) const
RotateFlipType
Status Exclude(const RectF &rect)
Status Exclude(const Rect &rect)
Status MakeInfinite(VOID)
static ATOM item
Definition: dde.c:856
GpStatus WINGDIPAPI GdipIsStyleAvailable(GDIPCONST GpFontFamily *family, INT style, BOOL *IsStyleAvailable)
Definition: font.c:976
UINT16 GetCellAscent(INT style) const
Status UnlockBits(BitmapData *lockedBitmapData)
GpStatus WINGDIPAPI GdipCreateRegionRgnData(GDIPCONST BYTE *data, INT size, GpRegion **region)
Definition: region.c:946
Bitmap(INT width, INT height, Graphics *target)
Status Union(const RectF &rect)
Bitmap(HINSTANCE hInstance, const WCHAR *bitmapName)
INT GetPaletteSize(VOID)
GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *path, GpRegion **region)
Definition: region.c:425
_In_ HBITMAP hbm
Definition: ntgdi.h:2776
UINT GetHeight(VOID)
Status SetStatus(Status status) const
Definition: services.c:325
static Bitmap * FromHICON(HICON hicon)
static Image * FromStream(IStream *stream, BOOL useEmbeddedColorManagement=FALSE)
unsigned short UINT16
unsigned int UINT
Definition: ndis.h:50
GpStatus WINGDIPAPI GdipIsVisibleRegionRect(GpRegion *region, REAL x, REAL y, REAL w, REAL h, GpGraphics *graphics, BOOL *res)
Definition: region.c:1277
GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi, REAL *height)
Definition: font.c:599
Status SetBaseInset(REAL inset)
Status Xor(const RectF &rect)
GpStatus WINGDIPAPI GdipImageGetFrameDimensionsCount(GpImage *image, UINT *count)
Definition: image.c:2885
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint dx
Definition: linetemp.h:97
GpStatus WINGDIPAPI GdipGetImageDimension(GpImage *image, REAL *width, REAL *height)
Definition: image.c:2176
GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
Definition: font.c:319
Status GetLastStatus(VOID)
GpStatus WINGDIPAPI GdipGetPropertySize(GpImage *image, UINT *size, UINT *count)
Definition: image.c:2687
Status RemovePropertyItem(PROPID propId)
GpStatus WINGDIPAPI GdipBitmapSetResolution(GpBitmap *bitmap, REAL xdpi, REAL ydpi)
Definition: image.c:1163
ImageType
Definition: gdiplusenums.h:191
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
Status Complement(const RectF &rect)
Definition: name.c:36
Status GetHBITMAP(const Color &colorBackground, HBITMAP *hbmReturn)
GpStatus WINGDIPAPI GdipCombineRegionRegion(GpRegion *region1, GpRegion *region2, CombineMode mode)
Definition: region.c:346
static const FontFamily * GenericSerif(VOID)
LineJoin GetStrokeJoin(VOID)
GLenum target
Definition: glext.h:7315
Region(const RectF &rect)
GpStatus WINGDIPAPI GdipTranslateRegionI(GpRegion *region, INT dx, INT dy)
Definition: region.c:1535
GpStatus WINGDIPAPI GdipSetImagePalette(GpImage *image, GDIPCONST ColorPalette *palette)
Definition: image.c:4696
GpStatus WINGDIPAPI GdipImageGetFrameDimensionsList(GpImage *image, GUID *dimensionIDs, UINT count)
Definition: image.c:2900
Status status
Status SaveAdd(Image *newImage, const EncoderParameters *encoderParams)
static HBITMAP
Definition: button.c:44
BOOL IsVisible(const Rect &rect, const Graphics *g) const
Status Translate(REAL dx, REAL dy)
static Image * FromFile(const WCHAR *filename, BOOL useEmbeddedColorManagement=FALSE)
Status GetFrameDimensionsList(GUID *dimensionIDs, UINT count)
Status GetBounds(RectF *srcRect, Unit *srcUnit)
float REAL
Definition: types.h:41
Bitmap(HBITMAP hbm, HPALETTE hpal)
Arabic default style
Definition: afstyles.h:93
GLuint64EXT * result
Definition: glext.h:11304
GpStatus WINGDIPAPI GdipGetRegionScans(GpRegion *region, GpRectF *scans, INT *count, GpMatrix *matrix)
Definition: region.c:1656
Status AddMemoryFont(const VOID *memory, INT length)
Font(HDC hdc, const LOGFONTA *logfont)
GpStatus WINGDIPAPI GdipCreateCachedBitmap(GpBitmap *bitmap, GpGraphics *graphics, GpCachedBitmap **cachedbmp)
Definition: image.c:1930
Status SetWidthScale(IN REAL widthScale)
GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, UINT16 *EmHeight)
Definition: font.c:918
Status GetLastStatus(VOID)
static const FontFamily * GenericMonospace(VOID)
Status Complement(const GraphicsPath *path)
Status Xor(const Rect &rect)
Image * Clone(VOID)
Status SetStrokeCap(LineCap strokeCap)
GpStatus WINGDIPAPI GdipGetImagePaletteSize(GpImage *image, INT *size)
Definition: image.c:2273
Status SetResolution(REAL xdpi, REAL ydpi)
Status Exclude(const GraphicsPath *path)
GpStatus WINGDIPAPI GdipCreateRegionRect(GDIPCONST GpRectF *rect, GpRegion **region)
Definition: region.c:459
Status GetPropertySize(UINT *totalBufferSize, UINT *numProperties)
Status Transform(const Matrix *matrix)
Bitmap(INT width, INT height, PixelFormat format)
UINT GetWidth(VOID)
Definition: ps.c:97
DWORD ARGB