论坛风格切换
您好,欢迎光临本站!   登录 注册新用户
  • 1940阅读
  • 2回复

[Delphi]再学GDI+[81]: TGPImage(1) - 显示图像 [复制链接]

上一主题 下一主题
 

发帖
25214
黑豆
4634
威望
96186
贡献值
0
交易币
0
红豆
0
只看楼主 倒序阅读 0 发表于: 2012-07-22

已知 GDI+ 可以支持的图像格式: BMP、JPEG、GIF、TIFF、PNG、ICO、WMF、EMF

TGPGraphics.DrawImage 函数有太多重载了, 一起列在这吧:

  1. function DrawImage(image: TGPImage; const point: TGPPointF): TStatus; overload;
  2. function DrawImage(image: TGPImage; x, y: Single): TStatus; overload;
  3. function DrawImage(image: TGPImage; const rect: TGPRectF): TStatus; overload;
  4. function DrawImage(image: TGPImage; x, y, width, height: Single): TStatus; overload;
  5. function DrawImage(image: TGPImage; const point: TGPPoint): TStatus; overload;
  6. function DrawImage(image: TGPImage; x, y: Integer): TStatus; overload;
  7. function DrawImage(image: TGPImage; const rect: TGPRect): TStatus; overload;
  8. function DrawImage(image: TGPImage; x, y, width, height: Integer): TStatus; overload;
  9. function DrawImage(image: TGPImage; destPoints: PGPPointF; count: Integer): TStatus; overload;
  10. function DrawImage(image: TGPImage; destPoints: PGPPoint; count: Integer): TStatus; overload;
  11. function DrawImage(
  12.  image: TGPImage;
  13.  x, y, srcx, srcy, srcwidth, srcheight: Single;
  14.  srcUnit: TUnit
  15. ): TStatus; overload;
  16. function DrawImage(image: TGPImage;
  17.  const destRect: TGPRectF;
  18.  srcx, srcy, srcwidth, srcheight: Single;
  19.  srcUnit: TUnit;
  20.  imageAttributes: TGPImageAttributes = nil;
  21.  callback: DrawImageAbort = nil;
  22.  callbackData: Pointer = nil
  23. ): TStatus; overload;
  24. function DrawImage(
  25.  image: TGPImage;
  26.  destPoints: PGPPointF;
  27.  count: Integer;
  28.  srcx, srcy, srcwidth, srcheight: Single;
  29.  srcUnit: TUnit;
  30.  imageAttributes: TGPImageAttributes = nil;
  31.  callback: DrawImageAbort = nil;
  32.  callbackData: Pointer = nil
  33. ): TStatus; overload;
  34. function DrawImage(image: TGPImage;
  35.  x, y, srcx, srcy, srcwidth, srcheight: Integer;
  36.  srcUnit: TUnit
  37. ): TStatus; overload;
  38. function DrawImage(
  39.  image: TGPImage;
  40.  const destRect: TGPRect;
  41.  srcx, srcy, srcwidth, srcheight: Integer;
  42.  srcUnit: TUnit;
  43.  imageAttributes: TGPImageAttributes = nil;
  44.  callback: DrawImageAbort = nil;
  45.  callbackData: Pointer = nil
  46. ): TStatus; overload;
  47. function DrawImage(
  48.  image: TGPImage;
  49.  destPoints: PGPPoint;
  50.  count, srcx, srcy, srcwidth, srcheight: Integer;
  51.  srcUnit: TUnit;
  52.  imageAttributes: TGPImageAttributes = nil;
  53.  callback: DrawImageAbort = nil;
  54.  callbackData: Pointer = nil
  55. ): TStatus; overload;


发帖
824
黑豆
1277
威望
1805
贡献值
0
交易币
0
红豆
0
只看该作者 2 发表于: 2012-07-23
陌生死、
快速回复
限100 字节
 
上一个 下一个