Method | Description | |
---|---|---|
AddNoise ( this Image, int Amount = 10 ) : |
adds noise to the image
|
|
AdjustBrightness ( this Image, int Value ) : |
Adjusts the brightness
|
|
AdjustContrast ( this OriginalImage, float Value ) : |
Adjusts the Contrast
|
|
AdjustGamma ( this OriginalImage, float Value = 1.0f ) : |
Adjusts the Gamma
|
|
BlackAndWhite ( this Image ) : |
Converts an SwiftBitmap to black and white
|
|
BlueFilter ( this Image ) : |
Gets the blue filter for an image
|
|
BoxBlur ( this Image, int Size = 3 ) : |
Does smoothing using a box blur
|
|
BumpMap ( this Image, Direction Direction = Direction.TopBottom, bool Invert = false ) : |
Creates the bump map
|
|
Colorize ( this OriginalImage, Color Colors ) : |
Colorizes a black and white image
|
|
Dilate ( this OriginalImage, int Size ) : |
Does dilation
|
|
DrawRoundedRectangle ( this Image, Color BoxColor, int XPosition, int YPosition, int Height, int Width, int CornerRadius ) : |
Draws a rounded rectangle on a SwiftBitmap
|
|
EdgeDetection ( this OriginalImage, float Threshold, Color EdgeColor ) : |
Does basic edge detection on an image
|
|
Emboss ( this Image ) : |
Emboss function
|
|
Equalize ( this OriginalImage ) : |
Uses an RGB histogram to equalize the image
|
|
GaussianBlur ( this Image, int Size = 3 ) : |
Does smoothing using a gaussian blur
|
|
GreenFilter ( this Image ) : |
Gets the Green filter for an image
|
|
Jitter ( this OriginalImage, int MaxJitter = 5 ) : |
Causes a "Jitter" effect
|
|
KuwaharaBlur ( this OriginalImage, int Size = 3 ) : |
Does smoothing using a kuwahara blur
|
|
LaplaceEdgeDetection ( this Image ) : |
Laplace edge detection function
|
|
MedianFilter ( this OriginalImage, int Size = 3 ) : |
Does smoothing using a median filter
|
|
Negative ( this OriginalImage ) : |
gets the negative of the image
|
|
NormalMap ( this ImageUsing, bool InvertX = false, bool InvertY = false ) : |
Creates the normal map
|
|
Pixelate ( this OriginalImage, int PixelSize = 5 ) : |
Pixelates an image
|
|
RedFilter ( this Image ) : |
Gets the Red filter for an image
|
|
SNNBlur ( this OriginalImage, int Size = 3 ) : |
Does smoothing using a SNN blur
|
|
SepiaTone ( this Image ) : |
Converts an SwiftBitmap to sepia tone
|
|
Sharpen ( this Image ) : |
Sharpens an image
|
|
SharpenLess ( this Image ) : |
Sharpens an image
|
|
SinWave ( this OriginalImage, float Amplitude, float Frequency, bool XDirection, bool YDirection ) : |
Does a "wave" effect on the image
|
|
SobelEdgeDetection ( this Input ) : |
Sobel edge detection function
|
|
SobelEmboss ( this Image ) : |
Sobel emboss function
|
|
StretchContrast ( this OriginalImage ) : |
Stretches the contrast
|
|
Threshold ( this OriginalImage, float Threshold = 0.5f ) : |
Does threshold manipulation of the image
|
|
ToASCIIArt ( this Input ) : string |
Converts an SwiftBitmap to ASCII art
|
|
Turbulence ( this OriginalImage, int Roughness = 8, float Power = 5.0f, int Seed = 25123864 ) : |
Does turbulence manipulation of the image
|
|
Watermark ( this Image, |
Adds a watermark to an image
|
Method | Description | |
---|---|---|
Distance ( int R1, int R2, int G1, int G2, int B1, int B2 ) : double | ||
GetHeight ( Color Color ) : float | ||
GetHeight ( int x, int y, |
||
GetMinMaxPixel ( Color &Min, Color &Max, |
||
Map ( int Value, int Min, int Max ) : int |
public static AddNoise ( this Image, int Amount = 10 ) : |
||
Image | this | The image to add noise to |
Amount | int | Amount of noise to add (defaults to 10) |
return |
public static AdjustBrightness ( this Image, int Value ) : |
||
Image | this | Image to change |
Value | int | The value. |
return |
public static AdjustContrast ( this OriginalImage, float Value ) : |
||
OriginalImage | this | Image to change |
Value | float | Used to set the contrast (-100 to 100) |
return |
public static AdjustGamma ( this OriginalImage, float Value = 1.0f ) : |
||
OriginalImage | this | Image to change |
Value | float | Used to build the gamma ramp (usually .2 to 5) |
return |
public static BlackAndWhite ( this Image ) : |
||
Image | this | Image to change |
return |
public static BlueFilter ( this Image ) : |
||
Image | this | Image to change |
return |
public static BoxBlur ( this Image, int Size = 3 ) : |
||
Image | this | Image to manipulate |
Size | int | Size of the aperture |
return |
public static BumpMap ( this Image, Direction Direction = Direction.TopBottom, bool Invert = false ) : |
||
Image | this | Image to create a bump map from |
Direction | Direction | Direction of the bump map |
Invert | bool | Inverts the direction of the bump map |
return |
public static Colorize ( this OriginalImage, Color Colors ) : |
||
OriginalImage | this | Black and white image |
Colors | Color | Color array to use for the image |
return |
public static Dilate ( this OriginalImage, int Size ) : |
||
OriginalImage | this | Image to manipulate |
Size | int | Size of the aperture |
return |
public static DrawRoundedRectangle ( this Image, Color BoxColor, int XPosition, int YPosition, int Height, int Width, int CornerRadius ) : |
||
Image | this | Image to draw on |
BoxColor | Color | The color that the box should be |
XPosition | int | The upper right corner's x position |
YPosition | int | The upper right corner's y position |
Height | int | Height of the box |
Width | int | Width of the box |
CornerRadius | int | Radius of the corners |
return |
public static EdgeDetection ( this OriginalImage, float Threshold, Color EdgeColor ) : |
||
OriginalImage | this | Image to do edge detection on |
Threshold | float | Decides what is considered an edge |
EdgeColor | Color | Color of the edge |
return |
public static Emboss ( this Image ) : |
||
Image | this | Image to manipulate |
return |
public static Equalize ( this OriginalImage ) : |
||
OriginalImage | this | Image to manipulate |
return |
public static GaussianBlur ( this Image, int Size = 3 ) : |
||
Image | this | Image to manipulate |
Size | int | Size of the aperture |
return |
public static GreenFilter ( this Image ) : |
||
Image | this | Image to change |
return |
public static Jitter ( this OriginalImage, int MaxJitter = 5 ) : |
||
OriginalImage | this | Image to manipulate |
MaxJitter | int | Maximum number of pixels the item can move |
return |
public static KuwaharaBlur ( this OriginalImage, int Size = 3 ) : |
||
OriginalImage | this | Image to manipulate |
Size | int | Size of the aperture |
return |
public static LaplaceEdgeDetection ( this Image ) : |
||
Image | this | Image to manipulate |
return |
public static MedianFilter ( this OriginalImage, int Size = 3 ) : |
||
OriginalImage | this | Image to manipulate |
Size | int | Size of the aperture |
return |
public static Negative ( this OriginalImage ) : |
||
OriginalImage | this | Image to manipulate |
return |
public static NormalMap ( this ImageUsing, bool InvertX = false, bool InvertY = false ) : |
||
ImageUsing | this | Image to create the normal map from |
InvertX | bool | Invert the X direction |
InvertY | bool | Invert the Y direction |
return |
public static Pixelate ( this OriginalImage, int PixelSize = 5 ) : |
||
OriginalImage | this | Image to pixelate |
PixelSize | int | Size of the "pixels" in pixels |
return |
public static RedFilter ( this Image ) : |
||
Image | this | Image to change |
return |
public static SNNBlur ( this OriginalImage, int Size = 3 ) : |
||
OriginalImage | this | Image to manipulate |
Size | int | Size of the aperture |
return |
public static SepiaTone ( this Image ) : |
||
Image | this | Image to change |
return |
public static Sharpen ( this Image ) : |
||
Image | this | Image to manipulate |
return |
public static SharpenLess ( this Image ) : |
||
Image | this | Image to manipulate |
return |
public static SinWave ( this OriginalImage, float Amplitude, float Frequency, bool XDirection, bool YDirection ) : |
||
OriginalImage | this | Image to manipulate |
Amplitude | float | Amplitude of the sine wave |
Frequency | float | Frequency of the sine wave |
XDirection | bool | Determines if this should be done in the X direction |
YDirection | bool | Determines if this should be done in the Y direction |
return |
public static SobelEdgeDetection ( this Input ) : |
||
Input | this | Image to manipulate |
return |
public static SobelEmboss ( this Image ) : |
||
Image | this | Image to manipulate |
return |
public static StretchContrast ( this OriginalImage ) : |
||
OriginalImage | this | Image to manipulate |
return |
public static Threshold ( this OriginalImage, float Threshold = 0.5f ) : |
||
OriginalImage | this | Image to transform |
Threshold | float | /// Float defining the threshold at which to set the pixel to black vs white. /// |
return |
public static ToASCIIArt ( this Input ) : string | ||
Input | this | The SwiftBitmap you wish to convert |
return | string |
public static Turbulence ( this OriginalImage, int Roughness = 8, float Power = 5.0f, int Seed = 25123864 ) : |
||
OriginalImage | this | Image to transform |
Roughness | int | Roughness of the movement |
Power | float | How strong the movement is |
Seed | int | Random seed |
return |
public static Watermark ( this Image, |
||
Image | this | image to add the watermark to |
WatermarkImage | Watermark image | |
Opacity | float | /// Opacity of the watermark (1.0 to 0.0 with 1 being completely visible and 0 being invisible) /// |
X | int | X position in pixels for the watermark |
Y | int | Y position in pixels for the watermark |
KeyColor | Color | /// Transparent color used in watermark image, set to null if not used /// |
return |