导航:  GdiPlus Classes > GdiPlus Classes > CGpGraphics Class > Graphics Object >

DrawImageFX

上一页返回章节概述下一页

描述

 

在应用指定效果后绘制图像的一部分.

 

C++ Syntax

 

Status DrawImage(

[in]  Image *image,

[in]  RectF *sourceRect,

[in]  Matrix *matrix,

[in]  Effect *effect,

[in]  ImageAttributes *imageAttributes,

[in]  Unit *srcUnit

);

 

FreeBASIC 语法

 

FUNCTION DrawImageFX ( _

BYVAL pImage AS CGpImage PTR, _

BYREF sourceRect AS GpRectF, _

BYVAL pMatrix AS CGpMatrix PTR, _

BYREF gpEffect AS CGpEffect, _

BYREF gpImageAttributes AS CGpImageAttributes, _

BYVAL srcUnit AS GpUnit_

) AS GpStatus

 

参数

 

pImage

 

[in]指针图像对象指定要绘制的图像.

 

sourceRect

 

[in]指向RectF结构指定要绘制的图像的一部分.

 

pMatrix

 

[in]指向Matrix对象指定的平行四边形的图像部分呈现.目标平行四边形是通过将矩阵中的仿射变换应用到源矩形.

 

pEffect

 

[in]指向实例的类的Effect后裔.后代指定渲染前应用于图像的效果或调整(例如,对比度的变化).图像没有永久改变的效果.

 

imageAttributes

 

[in]指针指向一个ImageAttributes对象指定颜色调整时所采用的图像呈现.可以NULL.

 

srcUnit

 

Unit枚举指定源矩形的度量单位[in]元.

 

返回值

 

如果该方法成功,则返回Ok,这是对Status枚举元素.

如果这个方法失败,它返回一个枚举的其他元素的Status.

 

引用文件

 

CGpBitmap.inc (include CGdiPlus.inc)