You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Effects and Filters > FxBlackNWhiteT Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.FxBlackNWhiteT Method

Performs black & white effect on a GdPicture image or into an area of a GdPicture image defined by SetROI() function using a specific threshold value.

C#
public GdPictureStatus FxBlackNWhiteT(
    int ImageID, 
    int Threshold
);
Visual Basic
Public Function FxBlackNWhiteT(
    ByVal ImageID As Integer, 
    ByVal Threshold As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
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. 
Returns

A member of the GdPictureStatus enumeration.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.