C# Class LitDev.LDImage

Exibir arquivo Open project: litdev1/LitDev

Private Properties

Property Type Description
Color2ARGB string
DoEffect void
Shadow void
histogram Primitive
statistics Primitive

Public Methods

Method Description
Add ( Primitive image, Primitive red, Primitive green, Primitive blue ) : void

Add colour values to image. An image has pixels with R,G,B in the range 0 to 255.

AddImages ( Primitive image1, Primitive image2 ) : Primitive

Add 2 images together. An image has pixels with R,G,B in the range 0 to 255. Both images must be the same dimension.

AddText ( Primitive imageName, Primitive text, Primitive x, Primitive y, Primitive colour ) : void

Annotate an image with text, using current GraphicsWindow font.

CloseWorkingImage ( Primitive image ) : void

Close and reset the image from a temporary working image.

ColorMatrix ( Primitive image, Primitive matrix ) : void

Performs a colour matrix transformation on an image. This can be used for all sorts of colour transformations. See http://msdn.microsoft.com/en-us/library/a7xw19wh%28v=vs.110%29.aspx.

Copy ( Primitive image ) : Primitive

Copy an image from the ImageList.

Crop ( Primitive image, Primitive x, Primitive y, Primitive width, Primitive height ) : void

Crop an image from the ImageList. The crop region must be entirely within the target image.

DifferenceImages ( Primitive image1, Primitive image2 ) : Primitive

Difference 2 images. An image has pixels with R,G,B in the range 0 to 255. Both images must be the same dimension.

EffectAccent ( Primitive image, Primitive hue, Primitive range ) : void

Converts to colour accent effect.

EffectBlocks ( Primitive image, Primitive size ) : void

Converts to block effect.

EffectBlue ( Primitive image ) : void

Converts to blue colour.

EffectBulge ( Primitive image, Primitive factor ) : void

Converts to bulge effect (similar to FishEye).

EffectCartoon ( Primitive image, Primitive radius, Primitive levels, Primitive inverse ) : void

Converts to cartoon effect.

EffectCharcoal ( Primitive image ) : void

Converts to charcoal effect.

EffectContrast ( Primitive image, Primitive contrast ) : void

Converts to high contrast effect.

EffectCyan ( Primitive image ) : void

Converts to cyan colour.

EffectEdge ( Primitive image ) : void

Converts to Prewitt edge effect.

EffectFishEye ( Primitive image, Primitive factor ) : void

Converts to fisheye effect.

EffectFuzzy ( Primitive image, Primitive size ) : void

Converts to fuzzy effect.

EffectGamma ( Primitive image, Primitive gamma ) : void

Converts to gamma effect.

EffectGray ( Primitive image ) : void

Converts to gray scale.

EffectGreen ( Primitive image ) : void

Converts to green colour.

EffectHue ( Primitive image, Primitive hue ) : void

Converts to modify Hue.

EffectInverse ( Primitive image ) : void

Converts to inverse colour.

EffectJagged ( Primitive image, Primitive size ) : void

Converts to jagged effect.

EffectLightness ( Primitive image, Primitive lightness ) : void

Converts to modify Lightness.

EffectMagenta ( Primitive image ) : void

Converts to magenta colour.

EffectNoiseRemoval ( Primitive image ) : void

Converts to noise removal effect.

EffectOilPaint ( Primitive image, Primitive radius, Primitive levels ) : void

Converts to oil paint effect.

EffectPixelate ( Primitive image, Primitive size ) : void

Converts to pixelate effect.

EffectPosterise ( Primitive image, Primitive level ) : void

Converts to posterise effect.

EffectRed ( Primitive image ) : void

Converts to red colour.

EffectReflect ( Primitive image, Primitive flip ) : void

Converts to X or Y reflection effect.

EffectRotate ( Primitive image, Primitive rotation ) : void

Converts to 90 degree rotation effect.

EffectSaturation ( Primitive image, Primitive saturation ) : void

Converts to modify Saturation.

EffectSepia ( Primitive image, Primitive threshold ) : void

Converts to sepia effect.

EffectSketch ( Primitive image ) : void

Converts to pen sketch effect.

EffectSnow ( Primitive image, Primitive level ) : void

Converts to snow effect.

EffectSolarise ( Primitive image, Primitive power ) : void

Converts to solarise effect.

EffectSwirl ( Primitive image, Primitive factor ) : void

Converts to swirl effect.

EffectYellow ( Primitive image ) : void

Converts to yellow colour.

GetEffects ( ) : Primitive

Get an array of the available image and webcam effects.

GetImagePixels ( Primitive image ) : Primitive

Get a 2D array filled with all the pixels in an image.

GetPixel ( Primitive image, Primitive x, Primitive y ) : Primitive

Get a pixel colour.

GetWorkingImagePixel ( Primitive image, Primitive x, Primitive y ) : Primitive

Get the colour of a pixel from a temporary working image.

GetWorkingImagePixelARGB ( Primitive image, Primitive x, Primitive y ) : Primitive

Get the colour of a pixel from a temporary working image.

HeightMap2NormalMap ( Primitive image, Primitive scale ) : Primitive

Create a normal map image from a height map. The height is given by the brightness of each pixel.

Histogram ( Primitive image ) : Primitive

Get histograms of colour pixel values.

LoadSVG ( Primitive fileName ) : Primitive

Load an SVG file as an ImageList image.

MakeTransparent ( Primitive image, Primitive colour ) : void

Modify an ImageList image to make a selected colour transparent.

MetaData ( Primitive imageFile ) : Primitive

Get an array of image metadata.

Multiply ( Primitive image, Primitive red, Primitive green, Primitive blue ) : void

Multiply colour values of image. An image has pixels with R,G,B in the range 0 to 255.

NewImage ( Primitive width, Primitive height, Primitive colour ) : Primitive

Create a new single colored 32bitARGB image in ImageList.

NormalMap ( Primitive shapeName, Primitive sourceX, Primitive sourceY, Primitive sourceZ, Primitive texture, Primitive ambient, Primitive intensity ) : void

Modify an image to show a gray scale (or modified image if texture is set) shadow effect based on a normal map image.

OpenWorkingImage ( Primitive image ) : void

Open a temporary working image for fast pixel level manipulation. After the temporary working image is finished with it should be set to the image using CloseWorkingImage.

Remove ( Primitive image ) : void

Remove an image from the ImageList.

ReplaceColour ( Primitive image, Primitive colourFrom, Primitive colourTo, Primitive tolerance ) : void

Replace one colour in an ImageList image with another.

Resize ( Primitive image, Primitive width, Primitive height ) : void

Resize an image from the ImageList.

Rotate ( Primitive image, Primitive angle ) : void

Rotate an image.

Save ( Primitive image, Primitive fileName ) : void

Save an image from the ImageList as a jpg.

SaveAs ( Primitive image, Primitive fileName ) : void

Save an image from the ImageList in different formats set by the file extension.

SetImagePixels ( Primitive pixels ) : Primitive

Create a new image from a 2D array of pixel colour values - see GetImagePixels for format of pixels.

SetPixel ( Primitive image, Primitive x, Primitive y, Primitive colour ) : void

Set a pixel colour.

SetWorkingImagePixel ( Primitive image, Primitive x, Primitive y, Primitive colour ) : void

Set the colour of a pixel in a temporary working image.

SplitImage ( Primitive imageName, Primitive countX, Primitive countY ) : Primitive

Creates an array of subdivided images from an input image.

Statistics ( Primitive image ) : Primitive

Get the minimum, maximum, mean and STD for colour pixel values.

To32bitARGB ( Primitive image ) : Primitive

Converts an ImageList image to Format ARGB (Alphachannel with 32bit/Pxl) if needed.

range ( double value ) : byte

Private Methods

Method Description
Color2ARGB ( Color c ) : string
DoEffect ( string image, eEffect effect, Primitive parameter ) : void
Shadow ( Primitive shapeName, Primitive sourceX, Primitive sourceY, Primitive sourceZ, Primitive texture, Primitive ambient, Primitive intensity ) : void
histogram ( string image ) : Primitive
statistics ( string image ) : Primitive

Method Details

Add() public static method

Add colour values to image. An image has pixels with R,G,B in the range 0 to 255.
public static Add ( Primitive image, Primitive red, Primitive green, Primitive blue ) : void
image Primitive The ImageList image to modify.
red Primitive Red value to add.
green Primitive Geen value to add.
blue Primitive Blue value to add.
return void

AddImages() public static method

Add 2 images together. An image has pixels with R,G,B in the range 0 to 255. Both images must be the same dimension.
public static AddImages ( Primitive image1, Primitive image2 ) : Primitive
image1 Primitive The first ImageList image to add.
image2 Primitive The second ImageList image to add.
return Primitive

AddText() public static method

Annotate an image with text, using current GraphicsWindow font.
public static AddText ( Primitive imageName, Primitive text, Primitive x, Primitive y, Primitive colour ) : void
imageName Primitive /// An existing ImageList image. ///
text Primitive The text to add
x Primitive The left position of the text.
y Primitive The Top position of the text.
colour Primitive /// The text colour. ///
return void

CloseWorkingImage() public static method

Close and reset the image from a temporary working image.
public static CloseWorkingImage ( Primitive image ) : void
image Primitive The working image, previously opened with OpenWorkingImage.
return void

ColorMatrix() public static method

Performs a colour matrix transformation on an image. This can be used for all sorts of colour transformations. See http://msdn.microsoft.com/en-us/library/a7xw19wh%28v=vs.110%29.aspx.
public static ColorMatrix ( Primitive image, Primitive matrix ) : void
image Primitive The ImageList image to modify.
matrix Primitive A 5*5 2D matrix. /// Sepia Example: /// matrix[1] = "1=0.393;2=0.349;3=0.272;4=0;5=0" /// matrix[2] = "1=0.769;2=0.686;3=0.534;4=0;5=0" /// matrix[3] = "1=0.189;2=0.168;3=0.131;4=0;5=0" /// matrix[4] = "1=0;2=0;3=0;4=1;5=0" /// matrix[5] = "1=0;2=0;3=0;4=0;5=1" ///
return void

Copy() public static method

Copy an image from the ImageList.
public static Copy ( Primitive image ) : Primitive
image Primitive The ImageList image to copy.
return Primitive

Crop() public static method

Crop an image from the ImageList. The crop region must be entirely within the target image.
public static Crop ( Primitive image, Primitive x, Primitive y, Primitive width, Primitive height ) : void
image Primitive The ImageList image to crop.
x Primitive The left position of the cropped image in pixels (indexed from 0).
y Primitive The top position of the cropped image in pixels (indexed from 0).
width Primitive The width of the cropped image in pixels.
height Primitive The height of the cropped image in pixels.
return void

DifferenceImages() public static method

Difference 2 images. An image has pixels with R,G,B in the range 0 to 255. Both images must be the same dimension.
public static DifferenceImages ( Primitive image1, Primitive image2 ) : Primitive
image1 Primitive The first ImageList image to difference.
image2 Primitive The second ImageList image to difference.
return Primitive

EffectAccent() public static method

Converts to colour accent effect.
public static EffectAccent ( Primitive image, Primitive hue, Primitive range ) : void
image Primitive The ImageList image to modify.
hue Primitive Accent Hue (0 o 360, default 0 (red)).
range Primitive Accent range (default 40).
return void

EffectBlocks() public static method

Converts to block effect.
public static EffectBlocks ( Primitive image, Primitive size ) : void
image Primitive The ImageList image to modify.
size Primitive Blocking size factor (default 5).
return void

EffectBlue() public static method

Converts to blue colour.
public static EffectBlue ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectBulge() public static method

Converts to bulge effect (similar to FishEye).
public static EffectBulge ( Primitive image, Primitive factor ) : void
image Primitive The ImageList image to modify.
factor Primitive Bulge factor, may be less than 1 for pinch effect (default 2).
return void

EffectCartoon() public static method

Converts to cartoon effect.
public static EffectCartoon ( Primitive image, Primitive radius, Primitive levels, Primitive inverse ) : void
image Primitive The ImageList image to modify.
radius Primitive Cartoon radius (odd number, default 7).
levels Primitive Cartoon levels (default 10).
inverse Primitive Cartoon inverse threshold (default 40).
return void

EffectCharcoal() public static method

Converts to charcoal effect.
public static EffectCharcoal ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectContrast() public static method

Converts to high contrast effect.
public static EffectContrast ( Primitive image, Primitive contrast ) : void
image Primitive The ImageList image to modify.
contrast Primitive Contrast factor (default 2), less than 1 reduces contrast.
return void

EffectCyan() public static method

Converts to cyan colour.
public static EffectCyan ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectEdge() public static method

Converts to Prewitt edge effect.
public static EffectEdge ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectFishEye() public static method

Converts to fisheye effect.
public static EffectFishEye ( Primitive image, Primitive factor ) : void
image Primitive The ImageList image to modify.
factor Primitive FishEye factor, should be greater than 1 (default 2).
return void

EffectFuzzy() public static method

Converts to fuzzy effect.
public static EffectFuzzy ( Primitive image, Primitive size ) : void
image Primitive The ImageList image to modify.
size Primitive Pixel region to make fuzzy (default 4).
return void

EffectGamma() public static method

Converts to gamma effect.
public static EffectGamma ( Primitive image, Primitive gamma ) : void
image Primitive The ImageList image to modify.
gamma Primitive Gamma factor, values less than 1 lighten and greater than 1 darken (default 2).
return void

EffectGray() public static method

Converts to gray scale.
public static EffectGray ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectGreen() public static method

Converts to green colour.
public static EffectGreen ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectHue() public static method

Converts to modify Hue.
public static EffectHue ( Primitive image, Primitive hue ) : void
image Primitive The ImageList image to modify.
hue Primitive Hue shift (0 to 360, default 180).
return void

EffectInverse() public static method

Converts to inverse colour.
public static EffectInverse ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectJagged() public static method

Converts to jagged effect.
public static EffectJagged ( Primitive image, Primitive size ) : void
image Primitive The ImageList image to modify.
size Primitive Pixel region size to make jagged (default 4).
return void

EffectLightness() public static method

Converts to modify Lightness.
public static EffectLightness ( Primitive image, Primitive lightness ) : void
image Primitive The ImageList image to modify.
lightness Primitive Lightness multiplier (default 2).
return void

EffectMagenta() public static method

Converts to magenta colour.
public static EffectMagenta ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectNoiseRemoval() public static method

Converts to noise removal effect.
public static EffectNoiseRemoval ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectOilPaint() public static method

Converts to oil paint effect.
public static EffectOilPaint ( Primitive image, Primitive radius, Primitive levels ) : void
image Primitive The ImageList image to modify.
radius Primitive Oil paint radius (odd number, default 7).
levels Primitive Oil paint levels (default 20).
return void

EffectPixelate() public static method

Converts to pixelate effect.
public static EffectPixelate ( Primitive image, Primitive size ) : void
image Primitive The ImageList image to modify.
size Primitive Pixelating size factor (default 16).
return void

EffectPosterise() public static method

Converts to posterise effect.
public static EffectPosterise ( Primitive image, Primitive level ) : void
image Primitive The ImageList image to modify.
level Primitive Posterise level (default 50).
return void

EffectRed() public static method

Converts to red colour.
public static EffectRed ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectReflect() public static method

Converts to X or Y reflection effect.
public static EffectReflect ( Primitive image, Primitive flip ) : void
image Primitive The ImageList image to modify.
flip Primitive 0 to flip X and 1 to flip Y (default 0).
return void

EffectRotate() public static method

Converts to 90 degree rotation effect.
public static EffectRotate ( Primitive image, Primitive rotation ) : void
image Primitive The ImageList image to modify.
rotation Primitive 0 for +90, 1 for 180 and 2 for 270(-90) degree rotation (default 0).
return void

EffectSaturation() public static method

Converts to modify Saturation.
public static EffectSaturation ( Primitive image, Primitive saturation ) : void
image Primitive The ImageList image to modify.
saturation Primitive Saturation multiplier (default 2).
return void

EffectSepia() public static method

Converts to sepia effect.
public static EffectSepia ( Primitive image, Primitive threshold ) : void
image Primitive The ImageList image to modify.
threshold Primitive Sepia threshold (default 30).
return void

EffectSketch() public static method

Converts to pen sketch effect.
public static EffectSketch ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

EffectSnow() public static method

Converts to snow effect.
public static EffectSnow ( Primitive image, Primitive level ) : void
image Primitive The ImageList image to modify.
level Primitive 1 in level pixels are randomly snow (default 25).
return void

EffectSolarise() public static method

Converts to solarise effect.
public static EffectSolarise ( Primitive image, Primitive power ) : void
image Primitive The ImageList image to modify.
power Primitive Solarise power (default 2, quadratic).
return void

EffectSwirl() public static method

Converts to swirl effect.
public static EffectSwirl ( Primitive image, Primitive factor ) : void
image Primitive The ImageList image to modify.
factor Primitive Swirl factor (default 1).
return void

EffectYellow() public static method

Converts to yellow colour.
public static EffectYellow ( Primitive image ) : void
image Primitive The ImageList image to modify.
return void

GetEffects() public static method

Get an array of the available image and webcam effects.
public static GetEffects ( ) : Primitive
return Primitive

GetImagePixels() public static method

Get a 2D array filled with all the pixels in an image.
public static GetImagePixels ( Primitive image ) : Primitive
image Primitive The ImageList image.
return Primitive

GetPixel() public static method

Get a pixel colour.
public static GetPixel ( Primitive image, Primitive x, Primitive y ) : Primitive
image Primitive The ImageList image.
x Primitive The x pixel (indexed from 1).
y Primitive The y pixel (indexed from 1).
return Primitive

GetWorkingImagePixel() public static method

Get the colour of a pixel from a temporary working image.
public static GetWorkingImagePixel ( Primitive image, Primitive x, Primitive y ) : Primitive
image Primitive The working image, previously opened with OpenWorkingImage.
x Primitive The x pixel coordinate (indexed from 1).
y Primitive The y pixel coordinate (indexed from 1).
return Primitive

GetWorkingImagePixelARGB() public static method

Get the colour of a pixel from a temporary working image.
public static GetWorkingImagePixelARGB ( Primitive image, Primitive x, Primitive y ) : Primitive
image Primitive The working image, previously opened with OpenWorkingImage.
x Primitive The x pixel coordinate (indexed from 1).
y Primitive The y pixel coordinate (indexed from 1).
return Primitive

HeightMap2NormalMap() public static method

Create a normal map image from a height map. The height is given by the brightness of each pixel.
public static HeightMap2NormalMap ( Primitive image, Primitive scale ) : Primitive
image Primitive The height map ImageList image.
scale Primitive A scale factor for the elevation (default 1).
return Primitive

Histogram() public static method

Get histograms of colour pixel values.
public static Histogram ( Primitive image ) : Primitive
image Primitive The ImageList image.
return Primitive

LoadSVG() public static method

Load an SVG file as an ImageList image.
public static LoadSVG ( Primitive fileName ) : Primitive
fileName Primitive The SVG file.
return Primitive

MakeTransparent() public static method

Modify an ImageList image to make a selected colour transparent.
public static MakeTransparent ( Primitive image, Primitive colour ) : void
image Primitive The ImageList image.
colour Primitive The colour to make transparent.
return void

MetaData() public static method

Get an array of image metadata.
public static MetaData ( Primitive imageFile ) : Primitive
imageFile Primitive The image file (not an ImageList image).
return Primitive

Multiply() public static method

Multiply colour values of image. An image has pixels with R,G,B in the range 0 to 255.
public static Multiply ( Primitive image, Primitive red, Primitive green, Primitive blue ) : void
image Primitive The ImageList image to modify.
red Primitive Red value to multiply by.
green Primitive Geen value to multiply by.
blue Primitive Blue value to multiply by.
return void

NewImage() public static method

Create a new single colored 32bitARGB image in ImageList.
public static NewImage ( Primitive width, Primitive height, Primitive colour ) : Primitive
width Primitive The width of the new image.
height Primitive The height of the new image.
colour Primitive The colour of the new image.
return Primitive

NormalMap() public static method

Modify an image to show a gray scale (or modified image if texture is set) shadow effect based on a normal map image.
public static NormalMap ( Primitive shapeName, Primitive sourceX, Primitive sourceY, Primitive sourceZ, Primitive texture, Primitive ambient, Primitive intensity ) : void
shapeName Primitive An image shape normal map (R,G,B colours represent normal vecors of a 3D image). /// This is an image shape created using Shapes.AddImage containing the normal map image.
sourceX Primitive The x position of a light source relative to the image.
sourceY Primitive The y position of a light source relative to the image.
sourceZ Primitive The z position of a light source relative to the image, this is the height abouve the image. /// This can be used to alter the effective contrast of the shadow effect.
texture Primitive An optional ImageList image or "" with texture (colour) to modify, it should be the same dimensions as the normal map image. /// The texture image may be changed on subsequent calls.
ambient Primitive Optional ambient light intensity if texture is set (default 0.3).
intensity Primitive Optional light intensity if texture is set (default 2).
return void

OpenWorkingImage() public static method

Open a temporary working image for fast pixel level manipulation. After the temporary working image is finished with it should be set to the image using CloseWorkingImage.
public static OpenWorkingImage ( Primitive image ) : void
image Primitive The ImageList image to open as a temporary working image.
return void

Remove() public static method

Remove an image from the ImageList.
public static Remove ( Primitive image ) : void
image Primitive The ImageList image to delete.
return void

ReplaceColour() public static method

Replace one colour in an ImageList image with another.
public static ReplaceColour ( Primitive image, Primitive colourFrom, Primitive colourTo, Primitive tolerance ) : void
image Primitive The ImageList image.
colourFrom Primitive The colour to replace.
colourTo Primitive The replacement colour to apply.
tolerance Primitive A tolerance for the colour to match (default 0 - exact match). /// ARGB pixel values all within the tolerance will be replaced.
return void

Resize() public static method

Resize an image from the ImageList.
public static Resize ( Primitive image, Primitive width, Primitive height ) : void
image Primitive The ImageList image to resize.
width Primitive The width in pixels.
height Primitive The height in pixels.
return void

Rotate() public static method

Rotate an image.
public static Rotate ( Primitive image, Primitive angle ) : void
image Primitive The ImageList image to modify.
angle Primitive The angle to rotate the image clockwise by in degrees.
return void

Save() public static method

Save an image from the ImageList as a jpg.
public static Save ( Primitive image, Primitive fileName ) : void
image Primitive The ImageList image to save.
fileName Primitive The file to save the image as.
return void

SaveAs() public static method

Save an image from the ImageList in different formats set by the file extension.
public static SaveAs ( Primitive image, Primitive fileName ) : void
image Primitive The ImageList image to save.
fileName Primitive The file to save the image as. /// Accepted file type extensions include *.bmp, *.gif, *.jpg, *.png, *.tiff or *.ico.
return void

SetImagePixels() public static method

Create a new image from a 2D array of pixel colour values - see GetImagePixels for format of pixels.
public static SetImagePixels ( Primitive pixels ) : Primitive
pixels Primitive An array of hex based image pixel colours indexed by [x][y].
return Primitive

SetPixel() public static method

Set a pixel colour.
public static SetPixel ( Primitive image, Primitive x, Primitive y, Primitive colour ) : void
image Primitive The ImageList image.
x Primitive The x pixel (indexed from 1).
y Primitive The y pixel (indexed from 1).
colour Primitive The colour to set the pixel.
return void

SetWorkingImagePixel() public static method

Set the colour of a pixel in a temporary working image.
public static SetWorkingImagePixel ( Primitive image, Primitive x, Primitive y, Primitive colour ) : void
image Primitive The working image, previously opened with OpenWorkingImage.
x Primitive The x pixel coordinate (indexed from 1).
y Primitive The y pixel coordinate (indexed from 1).
colour Primitive The colour to set the pixel to.
return void

SplitImage() public static method

Creates an array of subdivided images from an input image.
public static SplitImage ( Primitive imageName, Primitive countX, Primitive countY ) : Primitive
imageName Primitive /// The image file (local or network) to load. /// Can also be an ImageList image. ///
countX Primitive /// The number of sub-images in the X direction. ///
countY Primitive /// The number of sub-images in the Y direction. ///
return Primitive

Statistics() public static method

Get the minimum, maximum, mean and STD for colour pixel values.
public static Statistics ( Primitive image ) : Primitive
image Primitive The ImageList image.
return Primitive

To32bitARGB() public static method

Converts an ImageList image to Format ARGB (Alphachannel with 32bit/Pxl) if needed.
public static To32bitARGB ( Primitive image ) : Primitive
image Primitive The ImageList image.
return Primitive

range() public static method

public static range ( double value ) : byte
value double
return byte