LitDev Extension API

GW LD3DView LDArray LDBits LDBlueTooth
LDCall LDChart LDClient LDClipboard LDColours
LDCommPort LDController LDControls LDCursors LDDataBase
LDDateTime LDDebug LDDialogs LDDictionary LDEffect
LDEmail LDEncryption LDEvents LDFastArray LDFastShapes
LDFigures LDFile LDFinances LDFocus LDftp
LDGeography LDGraph LDGraphicsWindow LDHashTable LDHID
LDIcon LDImage LDInline LDIOWarrior LDList
LDLogic LDMath LDMathX LDMatrix LDMusic
LDNetwork LDPhysics LDProcess LDQueue LDRegex
LDResources LDScrollBars LDSearch LDServer LDSettings
LDShapes LDShell LDSort LDSound LDSpeech
LDStatistics LDStopwatch LDText LDTextWindow LDTimer
LDTranslate LDUnits LDUtilities LDVector LDWaveForm
LDWebCam LDWindows LDxml LDZip TW

LDIcon
Create an icon (*.ico) or cursor (*.cur) file from an image.

AddImages Blurring BMatrix
Cartoon Cartoon cmyk2rgb
CMYKLayers color2greyscale ColorAccent
ColorFiltration ContrastStretching ContrastStretching
CreateCursor CreateIcon DFT
DFT GammaCorrection GammaCorrectionGS
GF1 GF2 GF3
GMatrix Histogram HistogramShift
HistoramEqualization HPF1 HPF2
HPF3 HPF4 hsv2rgb
iDFT iDFT2 ImageCloseGS
ImageCloseGS ImageDilatationFilterGS ImageDilatationFilterGS
ImageErosionFilterGS ImageErosionFilterGS ImageFilterColor
ImageFilterColor ImageFilterColor ImageFilterGS
ImageFilterGS ImageFilterGS ImageKuwaharaFilterColor
ImageKuwaharaFilterGS ImageMedianFilterColor ImageMedianFilterGS
ImageOpenGS ImageOpenGS ImagePrewittFilterColor
ImagePrewittFilterGS ImageSDROMFilterColor ImageSDROMFilterColor
ImageSDROMFilterGS ImageSDROMFilterGS ImageSobelFilterColor
ImageSobelFilterGS InverseImage iSDFT
iSDFT2 LaplaceF1 LaplaceF2
LaplaceF3 LaplaceF4 LogaritmicScaling
LPF1 LPF2 LPF3
LPF4 Magnitude Matrix2Image
Matrix2Image Matrix2ImageLog Matrix2ImageMax
MaxBrightness MinBrightness NegativeImageColor
NegativeImageGS OilPaint Phase
Resize Resize2 rgb2cmyk
rgb2hsv RGBHistogram RGBLayers
RGBMatrix RMatrix Rotate
Rotate SDFT SDFT
Sepia SetSizes Shift
Shift Sketch SketchCharcoal
SquareImage SubtractImages TiltShift
ToBlackwhite ToBlackwhiteInverse ToGreyscale
ToGreyscaleAVG ToGreyscaleLightness

AddImages(Left,Right)
Converts ARGB images to greyscale using luminance method and adds
Left Image
Right Image
returns Product of addition

Blurring(OriginalImage,X,Y,r)
Image bluring
OriginalImage Original ARGB image
X Horizontal coordinate
Y Vertical coordinate
r Sharp region radius
returns Blurred image

BMatrix(OriginalImage)
Separates blue color layer
OriginalImage Original ARGB image
returns Blue color layer

Cartoon(OriginalImage,R,Level,InverseThreshold,EdgeFilter)
Cartoon effect received by combining oil paint algorithm and edge detecting
OriginalImage Original ARGB image
R Radius of oil paint algorithm
Level Available levels of intensity
InverseThreshold Inverse threshold
EdgeFilter Edge detecting mask
returns Cartoon effect result

Cartoon(OriginalImage,R,Level,InverseThreshold)
Cartoon effect received by combining oil paint algorithm and Sobel edge detecting
OriginalImage Original ARGB image
R Radius of oil paint algorithm
Level Available levels of intensity
InverseThreshold Inverse threshold
returns Cartoon effect result

cmyk2rgb(cmyk)
Transforms CMYK color model to RGB
cmyk CMYK values [C, M, Y, K]
returns RGB color

CMYKLayers(OriginalImage)
Creates CMYK layesr from RGB image
OriginalImage Original ARGB image
returns CMYK layers as RGB bitmaps

color2greyscale(pixel)
Converts RGB pixel to greyscale using luminance method
pixel RGB pixel
returns Greyscale pixel

ColorAccent(OriginalImage,h,range)
Color accent filtration
OriginalImage Original ARGB image
h Hue of accented color
range Range of acceptance
returns Color accent filtration

ColorFiltration(OriginalImage,color)
Image color filtration with defined color filter
OriginalImage Original ARGB image
color Color filter. Available color filters are: Magenta, Yellow, Cyan, Magenta-Yellow, Cyan-Magenta, Yellow-Cyan
returns Result of color filtration

ContrastStretching(OriginalImage,RMinSet,RMaxSet)
Converts ARGB images to greyscale using luminance method and brighten using contrast stretching method.
Brightness minimum and maximum available values are by default 0 and 255.

OriginalImage Original ARGB image
RMinSet Minimum available brightness value
RMaxSet Maximum available brightness value
returns Brigthen greyscaled image

ContrastStretching(OriginalImage)
onverts ARGB images to greyscale using luminance method and brighten using contrast stretching method.
Brightness minimum and maximum available values are by default 0 and 255.

OriginalImage Original ARGB image
returns Brigthen greyscaled image

CreateCursor(imageName,cursorPath,size,xHotSpot,yHotSpot)
Create a cursor file.
imageName The file path or ImageList image to create cursor from. Best results will be obtained from a square image.
cursorPath The full path to save the cursor file (using extension *.cur).
size The pixel size of cursor.
xHotSpot Pixel from left of cursor hot spot, indexed from 0.
For images where the aspect ratio is maintained, the xHotSpot is also scaled.

yHotSpot Pixel from top of cursor hot spot, indexed from 0.
returns
CreateIcon(imageName,iconPath)
Create an icon file with 16*16, 24*24, 32*32, 64*64, 128*128 and 256*256 embedded images.
To change these defaults use SetSizes method.

imageName The file path or ImageList image to create icon from. Best results will be obtained from a square image.
iconPath The full path to save the icon file (using extension *.ico).
returns "SUCCESS" or "FAILED"

DFT(OriginalImage)
Discrete Fourier Transform of image
OriginalImage Original ARGB image
returns Image spectrum

DFT(Data)
Discrete Fourier Transform of two-dimensional signal
Data Two-dimensional signal
returns Spectrum

GammaCorrection(OriginalImage,Gamma)
Converts image to greyscale and perform gamma correction
OriginalImage Original ARGB image
Gamma Gamma correction coefficient
returns Gamma corrected image

GammaCorrectionGS(OriginalImage,Gamma)
Gamma correction
OriginalImage Original ARGB image
Gamma Gamma correction coefficient
returns Gamma corrected image

GF1()
Gausian filter
returns Gausian filter

GF2()
Gausian filter
returns Gausian filter

GF3()
Gausian filter
returns Gausian filter

GMatrix(OriginalImage)
Separates green color layer
OriginalImage Original ARGB image
returns Green color layer

Histogram(OriginalImage)
Converts ARGB images to greyscale using luminance method and returns histogram
OriginalImage Original ARGB image
returns Image histogram (each list position corresponds to brightness level)

HistogramShift(OriginalImage,offset)
Converts ARGB images to greyscale using luminance method and shifts its histogram with respect to given offset.
OriginalImage Orignal ARGB image
offset Shift offset
returns Shifted greyscaled image

HistoramEqualization(OriginalImage)
Converts ARGB images to greyscale using luminance method and enhances contrast using equalization method.
OriginalImage Original ARGB image
returns Greyscaled contrast-enhances image

HPF1()
High pass filter
returns High pass filter

HPF2()
High pass filter
returns High pass filter

HPF3()
High pass filter
returns High pass filter

HPF4()
High pass filter
returns High pass filter

hsv2rgb(hsv)
Transforms HSV color model to RGB
hsv HSV values [H, S, V]
returns RGB color

iDFT(Spectrum)
Inverse Discrete Fourier Transform
Spectrum Image spectrum
returns Image

iDFT2(Spectrum)
Inverse Discrete Fourier Transform
Spectrum Signal spectrum
returns Signal

ImageCloseGS(OriginalImage,size)
Image to greyscale convertion and opening with element of given size
OriginalImage Orignal ARGB image
size Opening element size
returns Result of opening operation

ImageCloseGS(OriginalImage)
Image to greyscale convertion and closing with 3x3 element
OriginalImage Orignal ARGB image
returns Result of closing operation

ImageDilatationFilterGS(OriginalImage)
Converts ARGB images to greyscale using luminance method and calculates image filtartion with dilatation mask of 3 x 3 dimension.
OriginalImage Orignal ARGB image
returns Filtered image

ImageDilatationFilterGS(OriginalImage,size)
Converts ARGB images to greyscale using luminance method and calculates image filtartion with dilatation mask of given size.
OriginalImage Orignal ARGB image
size Dilatation mask dimension
returns Filtered image

ImageErosionFilterGS(OriginalImage)
Converts ARGB images to greyscale using luminance method and calculates image filtartion with erosion mask of 3 x 3 dimension.
OriginalImage Orignal ARGB image
returns Filtered image

ImageErosionFilterGS(OriginalImage,size)
Converts ARGB images to greyscale using luminance method and calculates image filtartion with erosion mask of given size.
OriginalImage Orignal ARGB image
size Erosion mask dimension
returns Filtered image

ImageFilterColor(OriginalImage,Filter)
Calculates image convolution with given filter mask.
OriginalImage Original ARGB image
Filter Filter mask
returns Filtered image

ImageFilterColor(OriginalImage,Filter)
Calculates image convolution with given filter mask.
OriginalImage Original ARGB image
Filter Filter mask
returns Filtered image

ImageFilterColor(OriginalImage,Filter,Coef)
Calculates image convolution with given filter mask.
OriginalImage Original ARGB image
Filter Filter mask
Coef Normalization coefficient
returns Filtered image

ImageFilterGS(OriginalImage,Filter)
Converts ARGB images to greyscale using luminance method and calculates image convolution with given filter mask.
OriginalImage Original ARGB image
Filter Filter mask
returns Filtered greyscaled image

ImageFilterGS(OriginalImage,Filter,Coef)
Converts ARGB images to greyscale using luminance method and calculates image convolution with given filter mask.
Normalization using given coefficient.

OriginalImage Original ARGB image
Filter Filter mask
Coef Normalization coefficient
returns Filtered greyscaled image

ImageFilterGS(OriginalImage,Filter)
Converts ARGB images to greyscale using luminance method and calculates image convolution with given filter mask.
OriginalImage Original ARGB image
Filter Filter mask
returns Filtered greyscaled image

ImageKuwaharaFilterColor(OriginalImage,FilterSize)
Kuwahara filtration
OriginalImage Original ARGB image
FilterSize Kuwahara filter size
returns Filtred image

ImageKuwaharaFilterGS(OriginalImage,FilterSize)
Image to greyscale convertion and kuwahara filtration
OriginalImage Original ARGB image
FilterSize Kuwahara filter size
returns Filtred image

ImageMedianFilterColor(OriginalImage,size)
Calculates image filtartion with median mask of given size.
OriginalImage Orignal ARGB image
size Median mask dimension
returns Filtered image

ImageMedianFilterGS(OriginalImage,size)
Converts ARGB images to greyscale using luminance method and calculates image filtartion with median mask of given size.
OriginalImage Orignal ARGB image
size Median mask dimension
returns Filtered image

ImageOpenGS(OriginalImage,size)
Image to greyscale convertion and opening with element of given size
OriginalImage Orignal ARGB image
size Opening element size
returns Result of opening operation

ImageOpenGS(OriginalImage)
Image to greyscale convertion and opening with 3x3 element
OriginalImage Orignal ARGB image
returns Result of opening operation

ImagePrewittFilterColor(OriginalImage)
Calculates module of image convolution with Prewitt operators (horizontal and vertical axis)
OriginalImage Original ARGB image
returns Filtered image

ImagePrewittFilterGS(OriginalImage)
Converts ARGB images to greyscale using luminance method and calculates module of image convolution with Prewitt operators (horizontal and vertical axis)
OriginalImage Original ARGB image
returns Filtered image

ImageSDROMFilterColor(OriginalImage)
Ccalculates image filtartion with SD-ROM mask of size 3.
OriginalImage Orignal ARGB image
returns Filtred image

ImageSDROMFilterColor(OriginalImage,size,thresholds)
Calculates image filtartion with SD-ROM mask of given size.
OriginalImage Orignal ARGB image
size SD-ROM mask size
thresholds Array of thresholds
returns Filtred image

ImageSDROMFilterGS(OriginalImage)
Converts ARGB images to greyscale using luminance method and calculates image filtartion with SD-ROM mask of size 3.
OriginalImage Orignal ARGB image
returns Filtred image

ImageSDROMFilterGS(OriginalImage,size,thresholds)
Converts ARGB images to greyscale using luminance method and calculates image filtartion with SD-ROM mask of given size.
OriginalImage Orignal ARGB image
size SD-ROM mask size
thresholds Array of thresholds
returns Filtred image

ImageSobelFilterColor(OriginalImage)
Calculates module of image convolution with Sobel operators (horizontal and vertical axis)
OriginalImage Original ARGB image
returns Filtered image

ImageSobelFilterGS(OriginalImage)
Converts ARGB images to greyscale using luminance method and calculates module of image convolution with Sobel operators (horizontal and vertical axis)
OriginalImage Original ARGB image
returns Filtered image

InverseImage(OriginalImage,threshold)
Converts ARGB image to greyscale using luminance method and inverses it with respect to given threshold
OriginalImage Original ARGB image
threshold Inverse threshold
returns Inversed image

iSDFT(Spectrum)
Inverse shifted Discrete Fourier Transform
Spectrum Image spectrum
returns Image

iSDFT2(Spectrum)
Inverse shifted Discrete Fourier Transform
Spectrum Signal spectrum
returns Signal

LaplaceF1()
Laplace filter
returns Laplace filter

LaplaceF2()
Laplace filter
returns Laplace filter

LaplaceF3()
Laplace filter
returns Laplace filter

LaplaceF4()
Laplace filter
returns Laplace filter

LogaritmicScaling(OriginalImage)
Image histogram normalization using 10-base logarithm scaling
OriginalImage Original AGB image
returns Normalized image

LPF1()
Low pass filter
returns Low pass filter

LPF2()
Low pass filter
returns Low pass filter

LPF3()
Low pass filter
returns Low pass filter

LPF4()
Low pass filter
returns Low pass filter

Magnitude(Spectrum)
Calculates array of magnitudes from array of complex elements
Spectrum Complex values array
returns Magnitudes values array

Matrix2Image(Matrix)
Converts array elements into pixel values (without normalization)
Matrix Array
returns Greyscale image

Matrix2Image(Matrix)
Converts array elements into pixel values (without normalization)
Matrix Array
returns Greyscale image

Matrix2ImageLog(Matrix)
Converts array elements into pixel values (values normalized using 10-base logarithm)
Matrix Array
returns Greyscale image

Matrix2ImageMax(Matrix)
Converts array elements into pixel values (values normalized using maximum element)
Matrix Array
returns Greyscale image

MaxBrightness(OriginalImage)
Returns image maximum brightness level
OriginalImage Original ARGB image
returns Maximum brightness level in given image

MinBrightness(OriginalImage)
Returns image minimum brightness level
OriginalImage Original ARGB image
returns Minimum brightness level in given image

NegativeImageColor(OriginalImage)
Calculate image negative
OriginalImage Original ARGB image
returns Negative

NegativeImageGS(OriginalImage)
Converts ARGB image to greyscale using luminance method and calculates its negative
OriginalImage Original ARGB image
returns Negative

OilPaint(OriginalImage,R,Level)
Oil paint filtration
OriginalImage original ARGB image
R Radius of oil paint algorithm
Level Available levels of intensity
returns Oil paint filtred image

Phase(Spectrum)
Calculates array of phases from array of complex elements
Spectrum Complex values array
returns Phases values array

Resize(OriginalImage,Width,Height)
Image resize using nearest neighbour method
OriginalImage Original image
Width Output width
Height Output height
returns Resized image

Resize2(OriginalImage,Width,Height)
Image resize using bilinear interpolation method
OriginalImage Original image
Width Output width
Height Output height
returns Resized image

rgb2cmyk(pixel)
Transforms RGB color model to CMYK
pixel RGB color
returns CMYK values [C, M, Y, K]

rgb2hsv(pixel)
Transforms RGB color model to HSV
pixel RGB color
returns HSV values [H, S, V]

RGBHistogram(OriginalImage)
Returns color image histogram
OriginalImage Original ARGB image
returns Image histogram (dimension 0 corresponds to color code (0 ->Red, 1 -> Green, 2 -> Blue), dimension 1 - each position corresponds to brightness level)

RGBLayers(OriginalImage)
Seperates values of each RGB layer
OriginalImage Original ARGB image
returns [Red, Green, Blue] image layers as Bitmaps

RGBMatrix(OriginalImage)
Seperates values of each RGB layer
OriginalImage Original ARGB image
returns [Red, Green, Blue] image layers

RMatrix(OriginalImage)
Separates red color layer
OriginalImage Original ARGB image
returns Red color layer

Rotate(OriginalImage,Angle,xCenter,yCenter)
Image rotation
OriginalImage Original image
Angle Rotate angle in degrees
xCenter X Center
yCenter Y Center
returns Rotated image

Rotate(OriginalImage,Angle)
Image rotation
OriginalImage Original image
Angle Rotate angle in degrees
returns Rotated image

SDFT(Data)
Shifted Discrete Fourier Transform of two-dimensional signal
Data Two-dimensional signal
returns Shifted spectrum

SDFT(OriginalImage)
Shifted Discrete Fourier Transform of image.
OriginalImage Original ARGB image
returns Shifted image spectrum

Sepia(OriginalImage,Coef)
Sepia filtration
OriginalImage Original ARGB image
Coef Sepia level
returns Sepia image

SetSizes(sizes)
Set the default icon sizes. This should be called before CreateIcon.
sizes A space separated list of integer icon sizes, default is "16 24 32 64 128 256".
An array of integer icon sizes may also be used.
The maximum size is 256.


Shift(Data)
Shifts array components
Data Original array
returns Shifted array

Shift(OriginalImage)
Transforms image into to shifted array of doubles
OriginalImage Original ARGB image
returns Shifted array

Sketch(OriginalImage)
Pen sketch effect received by combining laplace edge detecting, black and white transformation with inversion on point 35 and SDROM filter to eliminate smaller artefacts
OriginalImage Original ARGB image
returns Sketch effect image

SketchCharcoal(OriginalImage)
Charcoal sketch effect received by combining median filtration with mask size of 5, Sobel edge detecting, image inversion on point 80
OriginalImage Original ARGB image
returns Sketch effect image

SquareImage
Scale images to keep the aspect ratio of images square (width = height), "True" (default) or "False".
If set to "False" then the width of the icon or cursor will be scaled to maintain the image aspect ratio, while maintaining the set height.


SubtractImages(Left,Right)
Converts ARGB images to greyscale using luminance method and subtracts
Left Minuend image
Right Subtrahend image
returns Product of subtraction

TiltShift(OriginalImage)
Tilt shift filtration
OriginalImage Original ARGB image
returns Tilt shifted image

ToBlackwhite(OriginalImage,threshold)
Converts ARGB image to black and white and inverses it with respect to given threshold
OriginalImage Original ARGB image
threshold Threshold
returns Balck and white image

ToBlackwhiteInverse(OriginalImage,threshold)
Converts ARGB image to black and white and inverses it with respect to given threshold
OriginalImage Original ARGB image
threshold Threshold
returns Balck and white image

ToGreyscale(OriginalImage)
Converts ARGB image to greyscale using luminance method
OriginalImage Original ARGB image
returns Greyscaled image

ToGreyscaleAVG(OriginalImage)
Converts ARGB image to greyscale using average method
OriginalImage Original ARGB image
returns Greyscaled image

ToGreyscaleLightness(OriginalImage)
Converts ARGB image to greyscale using lightness method
OriginalImage Original ARGB image
returns Greyscaled image