|
|
| version 1.10.4.1, 2001/09/15 15:42:08 | version 1.20, 2002/02/08 08:30:11 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: image manipulations decls. | Parser: image manipulations decls. |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | |
| $Id$ | $Id$ |
| based on: | based on: |
| gd.h: declarations file for the gifdraw module. | gd.h: declarations file for the gifdraw module. |
| Line 58 public: | Line 58 public: |
| int x, y; | int x, y; |
| }; | }; |
| void Polygon(Point *p, int n, int c); | void Polygon(Point *p, int n, int c, bool closed=true); |
| void FilledPolygon(Point *p, int n, int c); | void FilledPolygon(Point *p, int n, int c); |
| void FilledPolygonReplaceColor(Point *p, int n, int a, int b); | void FilledPolygonReplaceColor(Point *p, int n, int a, int b); |
| int ColorAllocate(int r, int g, int b); | int ColorAllocate(int r, int g, int b); |
| int ColorClosest(int r, int g, int b); | int ColorClosest(int r, int g, int b, int tolerance=0); |
| int ColorExact(int r, int g, int b); | int ColorExact(int r, int g, int b); |
| int ColorRGB(int r, int g, int b); | int ColorRGB(int r, int g, int b); |
| int Color(unsigned int rgb); | int Color(unsigned int rgb); |
| Line 75 public: | Line 75 public: |
| void Gif(String& out); | void Gif(String& out); |
| void Arc(int cx, int cy, int w, int h, int s, int e, int color); | void Arc(int cx, int cy, int w, int h, int s, int e, int color); |
| void Sector(int cx, int cy, int w, int h, int s, int e, int color); | |
| void FillToBorder(int x, int y, int border, int color); | void FillToBorder(int x, int y, int border, int color); |
| void Fill(int x, int y, int color); | void Fill(int x, int y, int color); |
| void Copy(gdImage& dst, int dstX, int dstY, int srcX, int srcY, int w, int h); | void Copy(gdImage& dst, int dstX, int dstY, int srcX, int srcY, int w, int h); |
| void CopyResized(gdImage& dst, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH); | void CopyResampled(gdImage& dst, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH, int tolerance); |
| void SetLineWidth(int width); | void SetLineWidth(int width); |
| void SetLineStyle(const char *aLineStyle); | void SetLineStyle(const char *aLineStyle); |
| void SetInterlace(int interlaceArg); /* On or off(1 or 0) */ | void SetInterlace(int interlaceArg); /* On or off(1 or 0) */ |
| Line 110 private: | Line 111 private: |
| int transparent; | int transparent; |
| int *polyInts; | int *polyInts; |
| int polyAllocated; | int polyAllocated; |
| int lineWidth; | int lineWidth; const char *lineStyle; |
| int interlace; | int interlace; |
| private: // read gif | private: // read gif |