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





In This Topic
FxAddNoise Method (GdPictureImaging)
In This Topic
Performs noise effect on a GdPicture image or on an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxAddNoise( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxAddNoise( 
   int ImageID
)
public function FxAddNoise( 
    ImageID: Integer
): GdPictureStatus; 
public function FxAddNoise( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxAddNoise( 
   int ImageID
) 
public:
GdPictureStatus FxAddNoise( 
   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 noise effect on a 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.tif", true);
 
    // Add the noise to your image.
    gdpictureImaging.FxAddNoise(imageID);
    gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionAUTO);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also