GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / FxBlackNWhiteT Method
GdPicture image identifier.
Value between [1 and 254] The default value is 128 which means '50%'.pixel lighter than 50% => become white, darker => become black.





In This Topic
FxBlackNWhiteT Method (GdPictureImaging)
In This Topic
Performs black & white effect on a GdPicture image or on an area of a GdPicture image defined by SetROI() method using a specific threshold value. Values above or equal to the threshold value will be set white, and values lower than the threshold value will be set as black.
Syntax
'Declaration
 
Public Function FxBlackNWhiteT( _
   ByVal ImageID As Integer, _
   ByVal Threshold As Byte _
) As GdPictureStatus
public GdPictureStatus FxBlackNWhiteT( 
   int ImageID,
   byte Threshold
)
public function FxBlackNWhiteT( 
    ImageID: Integer;
    Threshold: Byte
): GdPictureStatus; 
public function FxBlackNWhiteT( 
   ImageID : int,
   Threshold : byte
) : GdPictureStatus;
public: GdPictureStatus FxBlackNWhiteT( 
   int ImageID,
   byte Threshold
) 
public:
GdPictureStatus FxBlackNWhiteT( 
   int ImageID,
   byte Threshold
) 

Parameters

ImageID
GdPicture image identifier.
Threshold
Value between [1 and 254] The default value is 128 which means '50%'.pixel lighter than 50% => become white, darker => become black.

Return Value

A member of the GdPictureStatus enumeration.
See Also