GdPicture.NET Reference Guide
FxPrewittEdgeDetect Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : FxPrewittEdgeDetect Method
GdPicture Image Identifier.
Performs a Edge Detection via the Prewitt Operator on a GdPicture image or on an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxPrewittEdgeDetect( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxPrewittEdgeDetect( 
   int ImageID
)
public function FxPrewittEdgeDetect( 
    ImageID: Integer
): GdPictureStatus; 
public function FxPrewittEdgeDetect( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxPrewittEdgeDetect( 
   int ImageID
) 
public:
GdPictureStatus FxPrewittEdgeDetect( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier.

Return Value

A member of the GdPictureStatus enumeration.
Example
Applying Prewitt edge detection filter on image.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.FxPrewittEdgeDetect(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
FxSobelEdgeDetect Method
FxEdgeEnhance Method