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
            
        
            Parameters
- ImageID
 
- GdPicture image identifier.
 
            
            Return Value
            A member of the GdPictureStatus enumeration.
            
 
            
            
            
            
            
            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);
}
	 
	
 
 
            
            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