GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / FxDiffuse Method
GdPicture image identifier.
Example





In This Topic
FxDiffuse Method (GdPictureImaging)
In This Topic
Performs diffuse effect on a GdPicture image or on an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxDiffuse( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxDiffuse( 
   int ImageID
)
public function FxDiffuse( 
    ImageID: Integer
): GdPictureStatus; 
public function FxDiffuse( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxDiffuse( 
   int ImageID
) 
public:
GdPictureStatus FxDiffuse( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
Example
Performing a Diffuse effect on the region of interest on the GdPicture image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // LoadInMemory parameter is set to true in order to be able to update the input file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg", true);
 
    // Set the region of interest. Apply the Diffuse effect to your ROI. Delete the region of interest.
    gdpictureImaging.SetROI(200, 500, 400, 200);
    gdpictureImaging.FxDiffuse(imageID);
    gdpictureImaging.ResetROI();
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg");
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also