C# Класс LitDev.LDImage

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Color2ARGB string
DoEffect void
Shadow void
histogram Primitive
statistics Primitive

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Add() публичный статический Метод

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.
Результат void

AddImages() публичный статический Метод

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.
Результат Primitive

AddText() публичный статический Метод

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. ///
Результат void

CloseWorkingImage() публичный статический Метод

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.
Результат void

ColorMatrix() публичный статический Метод

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" ///
Результат void

Copy() публичный статический Метод

Copy an image from the ImageList.
public static Copy ( Primitive image ) : Primitive
image Primitive The ImageList image to copy.
Результат Primitive

Crop() публичный статический Метод

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.
Результат void

DifferenceImages() публичный статический Метод

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.
Результат Primitive

EffectAccent() публичный статический Метод

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).
Результат void

EffectBlocks() публичный статический Метод

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).
Результат void

EffectBlue() публичный статический Метод

Converts to blue colour.
public static EffectBlue ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectBulge() публичный статический Метод

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).
Результат void

EffectCartoon() публичный статический Метод

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).
Результат void

EffectCharcoal() публичный статический Метод

Converts to charcoal effect.
public static EffectCharcoal ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectContrast() публичный статический Метод

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.
Результат void

EffectCyan() публичный статический Метод

Converts to cyan colour.
public static EffectCyan ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectEdge() публичный статический Метод

Converts to Prewitt edge effect.
public static EffectEdge ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectFishEye() публичный статический Метод

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).
Результат void

EffectFuzzy() публичный статический Метод

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).
Результат void

EffectGamma() публичный статический Метод

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).
Результат void

EffectGray() публичный статический Метод

Converts to gray scale.
public static EffectGray ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectGreen() публичный статический Метод

Converts to green colour.
public static EffectGreen ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectHue() публичный статический Метод

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).
Результат void

EffectInverse() публичный статический Метод

Converts to inverse colour.
public static EffectInverse ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectJagged() публичный статический Метод

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).
Результат void

EffectLightness() публичный статический Метод

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).
Результат void

EffectMagenta() публичный статический Метод

Converts to magenta colour.
public static EffectMagenta ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectNoiseRemoval() публичный статический Метод

Converts to noise removal effect.
public static EffectNoiseRemoval ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectOilPaint() публичный статический Метод

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).
Результат void

EffectPixelate() публичный статический Метод

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).
Результат void

EffectPosterise() публичный статический Метод

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).
Результат void

EffectRed() публичный статический Метод

Converts to red colour.
public static EffectRed ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectReflect() публичный статический Метод

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).
Результат void

EffectRotate() публичный статический Метод

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).
Результат void

EffectSaturation() публичный статический Метод

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).
Результат void

EffectSepia() публичный статический Метод

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).
Результат void

EffectSketch() публичный статический Метод

Converts to pen sketch effect.
public static EffectSketch ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

EffectSnow() публичный статический Метод

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).
Результат void

EffectSolarise() публичный статический Метод

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).
Результат void

EffectSwirl() публичный статический Метод

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).
Результат void

EffectYellow() публичный статический Метод

Converts to yellow colour.
public static EffectYellow ( Primitive image ) : void
image Primitive The ImageList image to modify.
Результат void

GetEffects() публичный статический Метод

Get an array of the available image and webcam effects.
public static GetEffects ( ) : Primitive
Результат Primitive

GetImagePixels() публичный статический Метод

Get a 2D array filled with all the pixels in an image.
public static GetImagePixels ( Primitive image ) : Primitive
image Primitive The ImageList image.
Результат Primitive

GetPixel() публичный статический Метод

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).
Результат Primitive

GetWorkingImagePixel() публичный статический Метод

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).
Результат Primitive

GetWorkingImagePixelARGB() публичный статический Метод

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).
Результат Primitive

HeightMap2NormalMap() публичный статический Метод

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).
Результат Primitive

Histogram() публичный статический Метод

Get histograms of colour pixel values.
public static Histogram ( Primitive image ) : Primitive
image Primitive The ImageList image.
Результат Primitive

LoadSVG() публичный статический Метод

Load an SVG file as an ImageList image.
public static LoadSVG ( Primitive fileName ) : Primitive
fileName Primitive The SVG file.
Результат Primitive

MakeTransparent() публичный статический Метод

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.
Результат void

MetaData() публичный статический Метод

Get an array of image metadata.
public static MetaData ( Primitive imageFile ) : Primitive
imageFile Primitive The image file (not an ImageList image).
Результат Primitive

Multiply() публичный статический Метод

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.
Результат void

NewImage() публичный статический Метод

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.
Результат Primitive

NormalMap() публичный статический Метод

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).
Результат void

OpenWorkingImage() публичный статический Метод

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.
Результат void

Remove() публичный статический Метод

Remove an image from the ImageList.
public static Remove ( Primitive image ) : void
image Primitive The ImageList image to delete.
Результат void

ReplaceColour() публичный статический Метод

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.
Результат void

Resize() публичный статический Метод

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.
Результат void

Rotate() публичный статический Метод

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.
Результат void

Save() публичный статический Метод

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.
Результат void

SaveAs() публичный статический Метод

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.
Результат void

SetImagePixels() публичный статический Метод

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].
Результат Primitive

SetPixel() публичный статический Метод

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.
Результат void

SetWorkingImagePixel() публичный статический Метод

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.
Результат void

SplitImage() публичный статический Метод

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. ///
Результат Primitive

Statistics() публичный статический Метод

Get the minimum, maximum, mean and STD for colour pixel values.
public static Statistics ( Primitive image ) : Primitive
image Primitive The ImageList image.
Результат Primitive

To32bitARGB() публичный статический Метод

Converts an ImageList image to Format ARGB (Alphachannel with 32bit/Pxl) if needed.
public static To32bitARGB ( Primitive image ) : Primitive
image Primitive The ImageList image.
Результат Primitive

range() публичный статический Метод

public static range ( double value ) : byte
value double
Результат byte