GdPicture.NET Reference Guide
FxDiffuse Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : FxDiffuse Method
GdPicture Image Identifier.
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
Applying a diffuse effect on the image.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.FxDiffuse(ImageID)
   oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
SetROI Method
ResetROI Method