Property | Type | Description | |
---|---|---|---|
Color2ARGB | string | ||
DoEffect | void | ||
Shadow | void | ||
histogram | Primitive | ||
statistics | Primitive |
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 |
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 |
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 |
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 |
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 |
public static CloseWorkingImage ( Primitive image ) : void | ||
image | Primitive | The working image, previously opened with OpenWorkingImage. |
return | void |
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 |
public static Copy ( Primitive image ) : Primitive | ||
image | Primitive | The ImageList image to copy. |
return | Primitive |
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 |
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 |
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 |
public static EffectBlocks ( Primitive image, Primitive size ) : void | ||
image | Primitive | The ImageList image to modify. |
size | Primitive | Blocking size factor (default 5). |
return | void |
public static EffectBlue ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
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 |
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 |
public static EffectCharcoal ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
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 |
public static EffectCyan ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
public static EffectEdge ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
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 |
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 |
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 |
public static EffectGray ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
public static EffectGreen ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
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 |
public static EffectInverse ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
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 |
public static EffectLightness ( Primitive image, Primitive lightness ) : void | ||
image | Primitive | The ImageList image to modify. |
lightness | Primitive | Lightness multiplier (default 2). |
return | void |
public static EffectMagenta ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
public static EffectNoiseRemoval ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
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 |
public static EffectPixelate ( Primitive image, Primitive size ) : void | ||
image | Primitive | The ImageList image to modify. |
size | Primitive | Pixelating size factor (default 16). |
return | void |
public static EffectPosterise ( Primitive image, Primitive level ) : void | ||
image | Primitive | The ImageList image to modify. |
level | Primitive | Posterise level (default 50). |
return | void |
public static EffectRed ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
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 |
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 |
public static EffectSaturation ( Primitive image, Primitive saturation ) : void | ||
image | Primitive | The ImageList image to modify. |
saturation | Primitive | Saturation multiplier (default 2). |
return | void |
public static EffectSepia ( Primitive image, Primitive threshold ) : void | ||
image | Primitive | The ImageList image to modify. |
threshold | Primitive | Sepia threshold (default 30). |
return | void |
public static EffectSketch ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
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 |
public static EffectSolarise ( Primitive image, Primitive power ) : void | ||
image | Primitive | The ImageList image to modify. |
power | Primitive | Solarise power (default 2, quadratic). |
return | void |
public static EffectSwirl ( Primitive image, Primitive factor ) : void | ||
image | Primitive | The ImageList image to modify. |
factor | Primitive | Swirl factor (default 1). |
return | void |
public static EffectYellow ( Primitive image ) : void | ||
image | Primitive | The ImageList image to modify. |
return | void |
public static GetImagePixels ( Primitive image ) : Primitive | ||
image | Primitive | The ImageList image. |
return | Primitive |
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 |
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 |
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 |
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 |
public static Histogram ( Primitive image ) : Primitive | ||
image | Primitive | The ImageList image. |
return | Primitive |
public static LoadSVG ( Primitive fileName ) : Primitive | ||
fileName | Primitive | The SVG file. |
return | Primitive |
public static MakeTransparent ( Primitive image, Primitive colour ) : void | ||
image | Primitive | The ImageList image. |
colour | Primitive | The colour to make transparent. |
return | void |
public static MetaData ( Primitive imageFile ) : Primitive | ||
imageFile | Primitive | The image file (not an ImageList image). |
return | Primitive |
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 |
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 |
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 |
public static OpenWorkingImage ( Primitive image ) : void | ||
image | Primitive | The ImageList image to open as a temporary working image. |
return | void |
public static Remove ( Primitive image ) : void | ||
image | Primitive | The ImageList image to delete. |
return | void |
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 |
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 |
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 |
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 |
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 |
public static SetImagePixels ( Primitive pixels ) : Primitive | ||
pixels | Primitive | An array of hex based image pixel colours indexed by [x][y]. |
return | Primitive |
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 |
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 |
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 |
public static Statistics ( Primitive image ) : Primitive | ||
image | Primitive | The ImageList image. |
return | Primitive |
public static To32bitARGB ( Primitive image ) : Primitive | ||
image | Primitive | The ImageList image. |
return | Primitive |