GflAx Reference
GflAx Reference
66
Copyright (c) : 1991-2007 Pierre-E Gougelet. All Rights Reserved.
License
Installing and using this library (GFL SDK/GflAx) signifies acceptance of these
terms and conditions of the license.
You may not use GFL SDK or GflAx to create components or controls to be used by
other developers without written approval.
The product developed by the Licensee should not be similar to or should not com
pete with XnView/NConvert (should not be a graphic viewer or converter).
"GFL SDK/GFLAx" is provided "as-is" and without warranty of any kind, express, i
mplied or otherwise, including without limitation, any warranty of merchantabili
ty or fitness for a particular purpose.
In no event shall the author of this software be held liable for data loss, dama
ges, loss of profits or any other kind of loss while using or misusing this soft
ware.
You may not use, copy, emulate, clone, rent, lease, sell, modify, decompile, dis
assemble, otherwise reverse engineer, or transfer the licensed program, or any s
ubset of the licensed program, except as provided for in this agreement. Any suc
h unauthorized use shall result in immediate and automatic termination of this l
icense and may result in criminal and/or civil prosecution.
Important The use of LZW technology needs to be licensed separately from UNISYS
Corporation. Contact UNISYS to get this license (www.unisys.com).
For JPEG-2000 & JBIG use, see corresponding licenses in Plugins folder of the GF
L SDK package
About Installation of the component To use GflAx DLL, copy the component in your
windows system directory, and register it with the regsvr32 command !
Use with Visual Basic To implement GflAx DLL in Visual Basic once the DLL instal
led, select the reference named GflAx in the IDE.
Creation of a object instance
Use with ASP To implement GflAx DLL with ASP, you must declare an instance of th
e object.
Creation of an object instance
Dim MyObj
Particularity of the object under ASP 1. The constants are not implemented. AX_G
IF and others return 0.
2. The getPicture function is of use to nothing with the instructions of VBScrip
t or JScript. There is no object with the Picture property under ASP.
About
This property (read only) returns the control and library versions.
object.About [=string]
Language
object.Language [=AX_Language]
Parameters AX_Language
A AX_Language constant:
1 AX_English 0 (by default)
2 AX_Francais 1
EnableLZW
object.EnableLZW [=boolean]
Remarks
r patent of Unisys.
SetPluginsPathname
older.
SaveBitmap,
SendBina
object.SetPluginsPathname [=string]
UseTransparency
.
object.UseTransparency [=Boolean]
MaskColor
BackColor,
object.MaskColor [=OLE_COLOR]
BackColor,
GetPictu
BackColor
picture.
object.BackColor [=OLE_COLOR]
BitmapType
MaskColor,
object.BitmapType [=AX_Type]
Parameters AX_Type
A AX_Type constant:
1 AX_Binary Binary
2 AX_Grey Grey scale
3 AX_Colors Colors
4 AX_TrueColors True colors
Width,
Xdpi,
Height,
NumberOfColorsUsed,
ColorModel
This property (read only) returns the label for the color mode o
f the picture.
object.ColorModel [=string]
Width
This property (read only) returns the width in pixels of the picture.
object.Width [=long]
Height This property (read only) returns the height in pixels of the picture.
object.Height [=long]
Xdpi
Returns or sets the resolution of the X axis in DPI (Dot Per Inch).
object.Xdpi [=integer]
Ydpi
Returns or sets the resolution of the Y axis in DPI (Dot Per Inch).
object.Ydpi [=integer]
NumberOfImages This property (read only) returns the number of picture in the f
ile.
object.NumberOfImages [=long]
NumberOfPages
object.NumberOfPages [=long]
Page
object.Page [=long]
OriginalSize
in bytes.
This property (read only) returns the size of the original file
object.OriginalSize [=long]
NumberOfColorsUsed
olors in the picture.
object.NumberOfColorsUsed [=long]
EpsDpi Allows to set the dpi used for loading eps/ps file.
object.EpsDpi [=long]
EpsWidth
object.EpsWidth [=long]
EpsHeight
object.EpsHeight [=long]
UseDPIFromEXIF Property (read only) that allows to use DPI from EXIF insteed DP
I from JPEG header.
object.UseDPIFromEXIF [=boolean]
SaveFormat
object.SaveFormat [=AX_FileFormats]
Parameters AX_FileFormats
A AX_SaveFormats constant:
1 AX_JPEG
2 AX_GIF
3 AX_PNG
4 AX_BMP
5 AX_TIFF
6 AX_TGA
7 AX_PCX
8 AX_XPM
9 AX_IFF
10 AX_SOFT
11 AX_SGI
12 AX_DCX
13 AX_PBM
14 AX_PGM
15 AX_PPM
16 AX_PNM
18 AX_XBM
19 AX_ICO
20 AX_PSION3
21 AX_PSION5
22 AX_PALM
23 AX_EMF
24 AX_VISTA
25 AX_ALIAS
26 AX_RLA
27 AX_CIN
28 AX_HRU
29 AX_DKB
30 AX_QRT
31 AX_VIVID
32 AX_MTV
33 AX_RAY
34 AX_JIF
35 AX_GPAT
39 AX_BIORAD
40 AX_RAD
42 AX_PRC
43 AX_WRL
45 AX_WBMP
47 AX_UYVYI
48 AX_UYVY
49 AX_RAW
Remarks
Be carefull ! Some file formats as GIF requires
the use of LZW compression under a patent from Unisys.
By defau
lt, the LZW compression is disabled.
SaveFormatName,
object.SaveFormatName [=string]
Parameters
See table for light version or standard version for supp
orted formats and name.
Remarks
Be carefull ! Some file formats as GIF requires
the use of LZW compression under a patent from Unisys.
By defau
lt, the LZW compression is disabled.
SaveGIFInterlaced
format.
SaveFormat,
SaveForm
object.SaveGIFInterlaced [=boolean]
SaveJPEGProgressive
G format.
object.SaveJPEGProgressive [=boolean]
SaveKeepMetadata
SaveJPEGQuality
JPEG format.
object.SaveJPEGQuality [=integer]
Parameters integer
An integer between 0 and 100
SavePNGCompression
NG format.
SaveKeepMetadata
object.SavePNGCompression [=integer]
Parameters integer
An integer between 1 and 7
SaveFormatDescription
format used to save.
object.SaveFormatDescription [=string]
SaveKeepMetadata
object.SaveKeepMetadata [=boolean]
SaveJPEGProgressive
FontName
Returns or sets the name of the font used by the TextOut functio
n to draw text.
object.FontName [=string]
Remarks
ing system.
FontItalic,
FontSize,
FontOrientation,
FontUnderline,
TextOut
FontSize
Returns or sets the size of the font used by the TextOut functio
n to draw text.
object.FontSize [=long]
FontBold
tion.
FontItalic,
FontUnderline,
FontName,
TextOut
Specifies that the font is an bold font used by the TextOut func
object.FontBold [=boolean]
FontName,
FontOrie
ntation,
FontStrikeOut,
FontItalic
nction.
FontSize,
TextOut
FontUnderline,
object.FontItalic [=boolean]
FontOrientation
o draw the text.
FontName,
FontSize,
TextOut
FontOrientation,
FontUnderline,
object.FontOrientation [=long]
Remarks
Angle in degrees.
FontStrikeOut
function.
FontItalic,
FontUnderline,
FontName,
FontStrikeOut,
object.FontStrikeOut [=boolean]
FontItalic,
FontSize,
TextOut
FontName,
FontUnde
FontUnderline
t function.
object.FontUnderline [=boolean]
LineWidth
FontItalic,
FontSize,
FontName,
FontStri
TextOut
object.LineWidth [=long]
LineColor
LineColor,
DrawPoint,
DrawFillRectangle,
DrawFillCircle,
FillColo
DrawLine,
DrawCirc
DrawPolyline,
object.LineColor [=OLE_COLOR]
FillColor
FillColor,
DrawLine,
DrawCircle,
DrawPolyline,
DrawPoin
DrawRectangle,
DrawFill
DrawPolygon
object.FillColor [=OLE_COLOR]
LoadBitmap
LineColor,
DrawFillRectangle,
FillColo
DrawFillCircle,
object.LoadBitmap(File as string)
Parameters File
String that contains the filename (with or not the folder and/or drive).
By default, the installed folder of the control is used.
Remarks
Be carefull ! Some file formats as GIF requires
the use of LZW compression under a patent from Unisys.
By defau
lt, the LZW compression is disabled.
LoadThumbnail
SaveBitmap,
GetPicture,
EnableLZW
Parameters File
String that contains the filename (with or not the folder and/or drive).
By default, the installed folder of the control is used.
Width
Remarks
Be carefull ! Some file formats as GIF requires
the use of LZW compression under a patent from Unisys.
By defau
lt, the LZW compression is disabled.
SaveBitmap
SaveBitmap,
GetPicture,
SendBina
EnableLZW
object.SaveBitmap([File as string])
Parameters File
(optional) String that contains the filename (with or not the folder and/or driv
e).
By default, the installed folder of the control
is used.
Remarks 1. If there is no filename, GflAx will use the filename in the object. I
f a file has the same extension or exists already, it will be replaced by SaveBi
tmap.
2. Be carefull ! Some file formats as GIF requires the use of LZW compression un
der a patent from Unisys.
By default, the LZW compression
is disabled.
SaveGIFInterlaced,
SaveJPEGQuality,
SavePNGCompression,
bnail,
EnableLZW
Clone
LoadBitmap,
SendBinary,
LoadThum
GetPicture,
object.Clone [=GflAx]
NewBitmap
Parameters Width
Width of the picture in pixels.
Height
Height of the picture in pixels.
BackColor (optional)
Value (long or constant) for the background color.
GetPicture
The GetPicture function loads a picture in the Picture p
roperties, of a PictureBox control, Image control or all other container that's
supports a picture object.
object.GetPicture [=IPicture]
MaskColor,
SendBinary,
LoadPicture,
ExportToClipboard
rent picture to clipboard.
object.ExportToClipboard
ChangeColorDepth
Parameters Mode
(optional) A AX_Mode.
1 AX_ToBinary Binary
4 AX_To4Colors 4 Colors
8 AX_To8Colors 8 Colors
16 AX_To16Colors 16 Colors
32 AX_To32Colors 32 Colors
64 AX_To64Colors 64 Colors
128 AX_To128Colors 128 Colors
216 AX_To216Colors 216 Colors
256 AX_To256Colors 256 Colors
0 (default) AX_ToTrueColors True colors
Dither
(optional) A AX_Dither.
er
1 AX_PatternDither Pattern dithering
2 AX_Haltone45Dither Halftone 45 dithering
3 AX_Haltone90Dither Halftone 90 dithering
4 AX_Adaptive Adaptive without dithering
5 AX_FloydSteinberg Floyd-Steinberg dithering
Palette
(optional) A AX_Palette.
1 AX_ToGrayScale In greyscale
Remarks If one or more parameters are not defined, the default values are used.
Crop
Parameters X
X position.
Y
Y position.
Width
Width in pixels.
Height
Height in pixels.
Resize,
FlipVertical,
FlipHorizontal,
ResizeCanvas
FlipHorizontal
a picture.
object.FlipHorizontal
Rotate,
Resize,
FlipVertical
icture.
object.FlipVertical
Resize
Rotate,
Resize,
Parameters Width
New width in pixels.
Height
New height in pixels.
ResizeCanvas
re.
FlipHorizontal,
Rotate,
Parameters Width
New width in pixels.
Height
New height in pixels.
CanvasMode (optional)
A AX_CanvasMode constant :
2 AX_To
pLeft 0
2 AX_Top 1
2 AX_TopRight 2
2 AX_Left 3
1 AX_Center 4 (by default)
2 AX_Right 5
2 AX_BottomLeft 6
2 AX_Bottom 7
2 AX_BottomRight 8
Color (optional)
Value (long or constant) to set the background color.
Rotate
FlipHorizontal,
Rotate,
Parameters Angle
Angle of rotation in degrees.
Color (optional)
Value (long or constant) to set the background color.
FlipHorizontal,
Resize,
GetColorAt
tmap.
Parameters X
X position.
Y
Y position.
Return value The function returns a long value for the color of the pixel.
FontItalic,
FontSize,
FontStrikeOut,
FontName,
FontUnde
TextOut
Parameters Text
The text to draw.
X
X position.
Y
Y position.
Color
Long value for the text color.
ReplaceColor
ture.
FontItalic,
FontOrientation,
FontStrikeOut,
FontName
FontSize,
Parameters Color
Old color.
NewColor
New color.
Tolerance
Hue tolerance.
Merge The Merge function allows to merge the list of picture added with the Me
rgeAddFile function;
object.Merge
DrawImage
MergeAddFile,
Parameters X
X-coordinate of destination.
Y
Y-coordinate of destination.
See also
GetBlob
se).
object.GetBlob [=string]
SetBlob
The SetBlob function returns in a Blob (field of a data
base) the data of the picture.
object.SetBlob
Remark
Be carefull ! Some file formats as GIF requires the use
of LZW compression under a patent from Unisys.
By default, the
LZW compression is disabled.
ReceiveBinary
SaveBitmap,
GetPictu
object.ReceiveBinary [=string]
SendBinary
picture's data.
object.SendBinary
Brightness
icture.
SaveBitmap,
GetPictu
object.Brightness [=long]
Contrast
re.
object.Contrast [=long]
Gamma
object.Gamma [=double]
Hue
object.Hue [=long]
Lightness
ture.
object.Lightness [=long]
Saturation
icture.
object.Saturation [=long]
AdjustHLS
Negative
object.Negative
LogCorrection
he picture.
object.LogCorrection
Normalize
object.Normalize
Equalize
object.Equalize
EqualizeOnLuminance
object.EqualizeOnLuminance
Balance
object.Balance(Color as OLE_COLOR)
Parameters Color
Color to add.
SwapColors
object.SwapColors([Model as AX_SwapModel])
Parameters Model
(optional) A color model AX_SwapModel.
u, Green
Sepia
DrawPoint
Parameters X
X position.
Y
Y position.
DrawLine
DrawCirc
DrawPoly
Parameters X0
X position of the first point.
Y0
Y position of the first point.
X1
X position of the second point.
Y1
Y position of the second point.
DrawPoint,
DrawCircle,
DrawPolyLine
DrawFill
DrawRectangle
Parameters X
X position of top-left corner.
Y
Y position of top-left corner.
Width
Width of the rectangle.
Height
Height of the rectangle.
LineColor,
DrawFillRectangle,
DrawPolygon,
DrawPoint,
DrawCircle,
DrawPolyLine
DrawFillRectangle
on the picture.
Parameters X
X position of top-left corner.
Y
Y position of top-left corner.
Width
Width of the rectangle.
Height
DrawCircle
FillColor,
DrawRectangle,
DrawPolygon,
DrawCirc
DrawPoly
Parameters X
X position of the center.
Y
Y position of the center.
Radius
Radius of the circle.
DrawLine,
DrawFillCircle,
Parameters X
X position of the center.
Y
Y position of the center.
Radius
Radius of the circle.
AddVertex
Parameters X
X position of the new vertex.
Y
Y position of the new vertex.
FreeVertex
DrawCirc
DrawPolygon,
DrawPolyline
object.FreeVertex
DrawPolygon,
DrawPolyline
DrawPolyline
he picture.
object.DrawPolyline
DrawPolygon
picture.
LineColor,
DrawRectangle,
DrawFillCircle,
DrawPoint,
DrawFillRectangle,
DrawPolyLine
object.DrawPolygon
Remark
LineColor,
DrawLine,
DrawCircle,
GetTextWidth
FillColor,
DrawRectangle,
DrawFillCircle,
DrawFill
object.GetTextWidth(Text as string)
Parameters Text
The text to draw.
FontItalic,
FontOrientation,
FontStrikeOut,
FontName
FontSize,
GetTextHeight
t.
object.GetTextHeight(Text as string)
Parameters Text
The text to draw.
HasIPTC
FontItalic,
FontOrientation,
FontStrikeOut,
FontName
FontSize,
object.HasIPTC [=boolean]
IPTCByline
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
object.IPTCByline [=string]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCBylineTitle
field.
object.IPTCBylineTitle [=string]
IPTCCaption
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
object.IPTCCaption [=string]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCCaptionWriter
r field.
object.IPTCCaptionWriter [=string]
IPTCCategory
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
object.IPTCCategory [=string]
IPTCCity
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
object.IPTCCity [=string]
IPTCByline,
IPTCCaption,
IPTCByli
IPTCCaptionWrite
r,
IPTCCopyrightNotice,
IPTCCredit,
line,
IPTCOTR,
inceState,
uctions,
Cat
IPTCCategory,
IPTCCopyrightNotice
ice field.
IPTCCountryName,
IPTCDateCreated,
IPTCKeywordsCount,
IPTCCopyrightNotice,
IPTCSource,
IPTCSuppCatCount,
IPTCCity,
IPTCHead
IPTCKeywords,
IPTCProv
IPTCSpecialinstr
IPTCSupp
object.IPTCCopyrightNotice [=string]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCCountryName
field.
object.IPTCCountryName [=string]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCCredit
object.IPTCCredit [=tring]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCDateCreated
object.IPTCDateCreated [=date]
IPTCHeadline
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
object.IPTCHeadline [=string]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
line,
IPTCOTR,
inceState,
uctions,
Cat
IPTCKeywordsCount,
IPTCCopyrightNotice,
IPTCSource,
IPTCSuppCatCount,
IPTCKeywords,
IPTCProv
IPTCSpecialinstr
IPTCSupp
IPTCKeywordsCount
words.
object.IPTCKeywordsCount [=long]
IPTCKeywords
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCObjectName Property (read only) that returns the IPTC Object Name field.
object.IPTCObjectName [=string]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCOTR
Property (read only) that returns the IPTC Original Transmission
Reference field.
object.IPTCOTR [=string]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCProvinceState
e field.
object.IPTCProvinceState [=string]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
inceState,
uctions,
Cat
IPTCSource
IPTCSource,
IPTCSuppCatCount,
IPTCSpecialinstr
IPTCSupp
object.IPTCSource [=string]
IPTCSpecialInstructions
al Instructions field.
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
object.IPTCSpecialInstructions [=string]
IPTCSuppCat
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
IPTCSuppCatCount
plemental Categories.
object.IPTCSuppCatCount [=long]
IPTCByline,
IPTCByli
IPTCCaption,
IPTCCaptionWrite
IPTCCategory,
IPTCCity,
IPTCCountryName,
IPTCDateCreated,
IPTCHead
IPTCKeywordsCount,
IPTCKeywords,
IPTCCopyrightNotice,
IPTCProv
IPTCSource,
IPTCSpecialinstr
IPTCSuppCatCount,
IPTCSupp
9 : 256 Grey
10 : 8 Colors
11 : 16 Colors
12 : 32 Colors
13 : 64 Colors
14 : 128 Colors
15 : 216 Colors
16 : 256 Colors
17 : RGB, RGBA, BGR, ABGR, BGRA
Format Name 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
JPEG / JFIF jpeg
Truevision Targa tga
TIFF Revision 6 tiff
Windows Bitmap bmp
Amiga IFF iff
Portable Network Graphics png
CompuServe GIF gif
Zsoft Publisher's Paintbrush pcx
Zsoft Multi-page Paintbrush dcx
Portable Image pnm
Portable Bitmap pbm
Portable Greyscale pgm
Portable Pixmap ppm
Windows Icon ico
Explore (TDI) & Maya tdi
Softimage soft
Silicon Graphics RGB sgi
Image Magick file miff
Format Name 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
JPEG / JFIF jpeg
Truevision Targa tga
TIFF Revision 6 tiff
Windows Bitmap bmp
Amiga IFF iff
Portable Network Graphics png
CompuServe GIF gif
Zsoft Publisher's Paintbrush pcx
Portable Image pnm
SaveBitmap
object.SaveBitmap([File as string])
Parameters File
(optional) String that contains the filename (with or not the folder and/or driv
e).
By default, the installed folder of the control
is used.
Remarks 1. If there is no filename, GflAx will use the filename in the object. I
f a file has the same extension or exists already, it will be replaced by SaveBi
tmap.
2. Be carefull ! Some file formats as GIF requires the use of LZW compression un
der a patent from Unisys.
By default, the LZW compression
is disabled.
SendBinary,
SaveGIFInterlaced,
SaveJPEGQuality,
LoadBitmap,
GetPicture,
LoadThum
object.SaveFormatName [=string]
Parameters
See table for light version or standard version for supp
orted formats and name.
Remarks
Be carefull ! Some file formats as GIF requires
the use of LZW compression under a patent from Unisys.
By defau
lt, the LZW compression is disabled.
SaveFormatDescription
format used to save.
SaveFormat,
object.SaveFormatDescription [=string]
SaveFormat
object.SaveFormat [=AX_FileFormats]
Parameters AX_FileFormats
A AX_SaveFormats constant:
1 AX_JPEG
2 AX_GIF
3 AX_PNG
4 AX_BMP
5 AX_TIFF
SaveForm
6 AX_TGA
7 AX_PCX
8 AX_XPM
9 AX_IFF
10 AX_SOFT
11 AX_SGI
12 AX_DCX
13 AX_PBM
14 AX_PGM
15 AX_PPM
16 AX_PNM
18 AX_XBM
19 AX_ICO
20 AX_PSION3
21 AX_PSION5
22 AX_PALM
23 AX_EMF
24 AX_VISTA
25 AX_ALIAS
26 AX_RLA
27 AX_CIN
28 AX_HRU
29 AX_DKB
30 AX_QRT
31 AX_VIVID
32 AX_MTV
33 AX_RAY
34 AX_JIF
35 AX_GPAT
39 AX_BIORAD
40 AX_RAD
42 AX_PRC
43 AX_WRL
45 AX_WBMP
47 AX_UYVYI
48 AX_UYVY
49 AX_RAW
Remarks
Be carefull ! Some file formats as GIF requires
the use of LZW compression under a patent from Unisys.
By defau
lt, the LZW compression is disabled.
SaveJPEGQuality
JPEG format.
SaveFormatName,
object.SaveJPEGQuality [=integer]
Parameters integer
An integer between 0 and 100
SaveKeepMetadata
SaveKeepMetadata
object.SaveKeepMetadata [=boolean]
SaveJPEGProgressive
G format.
SaveJPEGProgressive
object.SaveJPEGProgressive [=boolean]
TextOut
SaveKeepMetadata
Parameters Text
The text to draw.
X
X position.
Y
Y position.
Color
Long value for the text color.
FontItalic,
FontOrientation,
FontStrikeOut,
FontName
FontSize,
EnableLZW
object.EnableLZW [=boolean]
Remarks
r patent of Unisys.
SaveBitmap,
SendBina
AutoCrop
The AutoCrop function allows to crop a picture automatic
ally according to the background color.
object.AutoCrop([Color as OLE_COLOR], Tolerance As long)
Parameters Color
(optional) The background color. Else the background color is the color at x=0,
y=0.
Tolerance
(optional) The tolerance value.
FlipVertical,
Resize,
FlipHorizontal,
ResizeCanvas
ResizeCanvas
re.
Parameters Width
New width in pixels.
Height
New height in pixels.
CanvasMode (optional)
A AX_CanvasMode constant :
2 AX_To
pLeft 0
2 AX_Top 1
2 AX_TopRight 2
2 AX_Left 3
1 AX_Center 4 (by default)
2 AX_Right 5
2 AX_BottomLeft 6
2 AX_Bottom 7
2 AX_BottomRight 8
Color (optional)
Value (long or constant) to set the background color.
MergeAddFile
FlipHorizontal,
Parameters File
Filename.
Opacity
Rotate,
Remark
MergeClear
Merge
object.MergeClear
MergeAddFile
MergeAddFile
Parameters File
Filename.
Opacity
Opacity of the picture, 0 to 100 (%).
X
X position of the top-left corner.
Y
Y position of the top-left corner.
Remark
DrawPolyline
he picture.
Merge
object.DrawPolyline
LineColor,
DrawRectangle,
DrawFillCircle,
DrawPoint,
DrawFillRectangle,
DrawPolyLine