# $ K Wang Image Admin Control
Properties   Methods
Wang’s Image Admin control provides a method to administer image files that reside locally, or on a local area network (LAN). File and Print common dialog boxes support specific image file options as well as general directory and file functions.
General functions you can perform include creating, deleting, renaming, and moving directories and files, retrieving image file attributes, and setting image file attribute defaults.
Image-specific functions include inserting, appending, and replacing pages in a multi-page image file.
See Also
Imaging Concepts

# $ K Properties (Admin control)
CancelError	HelpContextId	PageNumber	
CompressionInfo	HelpFile	PageType	
CompressionType	HelpKey	PrintAnnotations	
DefaultExt	Image	PrintEndPage	
DialogTitle	ImageHeight	PrintNumCopies	
FileType	ImageResolutionX	PrintOutputFormat	
Filter	ImageResolutionY	PrintRangeOption	
FilterIndex	ImageWidth	PrintStartPage	
Flags	InitDir	PrintToFile	
HelpCommand	PageCount	StatusCode	

# $ K CancelError Property
Indicates or sets if an error will be returned when a user chooses Cancel from either the File or Print dialog boxes.
Applies To
Image Admin control
Syntax
object.CancelError[= {True|False}]
Data Type
Boolean
Setting	Description	
True (default)	Causes an error to be returned when the user chooses Cancel from either the File or Print dialog boxes.	
False	No error is returned when the user chooses Cancel.	
Remarks
When a user chooses Cancel from the File or Print dialog boxes, and this property is set to True, an error is returned by the ShowFileDialog or ShowPrintDialog methods, respectively.
See Also
ShowFileDialog method
ShowPrintDialog method

# $ K CompressionInfo Property
Returns the bitwise compression options set for the current image.
Applies To
Image Admin control
Syntax
object.CompressionInfo[=value] 
Data Type
Long 
Setting	Description	
Note:  Values 1 to 32 are not used with JPEG compression.	
1	EOL -- include or expect standard end of line bit sequences	
2	Packed lines -- data is not byte aligned	
4	Prefixed EOLs -- include or expect prefixed end of line bit sequences	
8	Compressed bit order, left to right	
16	Expanded bit order, left to right	
32	Negate -- indicates data is stored with black bits equal to 0 (zero)	
Note:  Values 64 to 16384 pertain only to JPEG compression.	
64	High compression, high quality	
128	High compression, medium quality	
256	High compression, low quality	
512	Medium compression, high quality	
1024	Medium compression, medium quality	
2048	Medium compression, low quality	
4096	Low compression, high quality	
8192	Low compression, medium quality	
16384	Low compression, low quality	
Remarks
The value returned by this property is for the image page specified by the PageNumber property. If no image is specified by PageNumber, the value returned is 0 (zero).
This property is read-only.
See Also
Image property
Compression
PageNumber property
CompressionType property

# $ K CompressionType Property
Returns the compression type of the current image.
Applies To
Image Admin control
Syntax
object.CompressionType[=value]
Data Type
Integer (enumerated)
Setting	Description	
0	Unknown	
1	No compression	
2	Group 3 1D FAX	
3	Group 3 Modified Huffman	
4	Packed Bits	
5	Group 4 2D FAX	
6	JPEG	
7	(not used)	
8	Group 3 2D FAX	
9	LZW	
Remarks
The value returned by this property is for the image page specified by the PageNumber property. If the Image property is empty, the value returned is 0 (zero).
This property is read-only.
See Also
Image property
Compression
PageNumber property
CompressionInfo property

# $ K DefaultExt Property
Returns or sets the default file extension in the ShowFileDialog dialog box.
Applies To
Image Admin control
Syntax
object.DefaultExt[=extension]
Data Type
String
Remarks
The extension of the currently selected filter overrides the default extension.
The default extension is used only when there is no extension associated with the filter (for example, ‘All files *.*’).
The first three characters of the string you specify are used as the file extension when the user does not specify a file extension.
See Also
ShowFileDialog method

# $ K DialogTitle Property
Returns or sets the title used in the common dialog boxes.
Applies To
Image Admin control
Syntax
object.DialogTitle[=title]
Data Type
String
Remarks
This property is used in conjunction with the ShowFileDialog method.
If a string is not specified, the default is used -- either Open or Save As.
See Also
ShowFileDialog method

# $ K FileType Property
Returns the file format of the image file.
Applies To
Image Admin control
Syntax
object.FileType[=value]
Data Type
Integer (enumerated)
Property settings are expressed using the following values:
Setting	Description	
0	Unknown	
1	TIFF	
2	(not used)	
3	Bitmap (BMP)	
4	PCX	
5	DCX	
6	JPEG	
 7	XIF	
Remarks
The file format is determined by the Image property.
This property is read-only.
See Also
File types
Image property

# $ K Filter Property
Returns or sets the list of file filters displayed.
Applies To
Image Admin control
Syntax
object.Filter[=filter]
Data Type
String
Remarks
Filters are displayed in the common dialog box created by the ShowFileDialog method.
Each filter type consists of two strings separated by, and ending with, a pipe symbol ( | ). The first string contains a description of the filter, such as ‘Tiff files’. The second string contains the file extension, such as ‘*.tif’. Be sure not to include spaces immediately before and after the pipe symbol, or they become part of the string.  For example:
All image files|*.tif;*.bmp|TIFF files|BMP files|*.bmp|
If no filter type is provided, the system supplies a default filter.
See Also
ShowFileDialog method

# $ K FilterIndex Property
Specifies which of the file filters is highlighted in the file common dialog box when the dialog box first opens.
Applies To
Image Admin control
Syntax
object.FilterIndex[=index]
Data Type
Long
Remarks
If no filters are specified by the Filter property and the FilterIndex property is set to 0 (zero), then a default filter will be highlighted. If a different filter is selected, the index still remains set to 0.
If a value was set for the Filter property, and a different filter is selected, the index will be updated to reflect the selected filter.
The default value is 0 (zero).
See Also
Filter property
ShowFileDialog method

# $ K Flags Property
Sets initialization flags for dialog boxes created by the ShowFileDialog and ShowPrintDialog methods.
Applies To
Image Admin control
Syntax
object.Flags[=value]
Data Type
Long
Values for ShowFileDialog
Value	Description	
&H400&	Indicates that the extension of the returned filename is different from the extension specified by the DefaultExt property. This flag is not set if the DefaultExt property is empty, if the extensions match, or if the file has no extension. This flag value can be checked upon returning from the dialog box.	
&H4&	Hides the Read-Only check box.	
&H8&	Forces the dialog box to set the current directory to what it was when the dialog box was invoked.	
&H8000&	Specifies that the returned file will not have the Read-Only attribute set and will not be in a write-protected directory.	
&H100&	Specifies that the common dialog box allows invalid characters in the returned filename.	
&H1&	Causes the Read Only check box to be initially checked when the dialog box is created. This flag also indicates the state of the Read Only check box when the dialog box is closed.	
&H10&	Causes the dialog box to display the Help button. If this option is specified, the parameter hParentWnd in the ShowFileDialog method must be set to null.	

Values for ShowPrintDialog
Value	Description	
&H10&	Sets or returns the state of the Collate check box.	
&H80000&	Disables the Print to File check box.	
&H100000&	The Print to File check box is not displayed. 	
&H80&	Prevents a warning message from being displayed when there is no default printer.	
&H400&	Causes the ShowPrintDialog method to return the system default printer. The ShowPrintDialog method does this without displaying the dialog box.	
&H40000&	If a printer driver does not support multiple copies, setting this flag disables the copies’ edit control. If a driver does support multiple copies, setting this flag indicates that the dialog box should store the requested number of copies in the Copies property.	
Remarks
The flags are bitwise and can be OR’d together.
These flags are defined in the Visual Basic CONSTANT.TXT file.
The Help button in the dialog box is not shown unless a Help file is specified by the HelpFile property. 
See Also
HelpFile property
ShowFileDialog method

# $ K HelpCommand Property
Returns or sets the type of Help requested.
Applies To
Image Admin control
Syntax
object.HelpCommand[=value]
Data Type
Integer
Setting	Description	
&H1&	Displays Help for a particular context.  When using this setting, you must also specify a context using the HelpContext property.	
&H3&	Displays the index of the specified Help file.  An application should use this value only for a Help file with a single index.	
&H4&	Displays Help for using the Help application itself.	
&H5&	Sets the context specified by the HelpContext property as the current index for the Help file specified by the HelpFile property.  This index remains current until the user accesses a different Help file.  Use this value only for Help files with more than one index.	
&H101&	Displays Help for a particular keyword. When using this setting, you must also specify a keyword using the HelpKey property.	
&H105&	Brings up a search box in Help, with the key specified by the HelpKey property.	
Remarks
Values for the HelpCommand property constants are defined in the VisualBasic CONSTANT.TXT file.
See Also
HelpContextId property
HelpKey property
HelpFile property
ShowFileDialog method

# $ K HelpContextId Property
Returns or sets a Help context Id.
Applies To
Image Admin control
Syntax
object.HelpContextId[=Value]
Data Type
Integer
Remarks
Context Ids are assigned to objects to provide context-sensitive Help to your application.
See Also
HelpCommand property
HelpKey property
HelpFile property
ShowFileDialog method

# $ K HelpKey Property
Returns or sets the keyword that identifies the requested Help topic.
Applies To
Image Admin control
Syntax
object.HelpKey[=keyword]
Data Type
String
Remarks
Use this property with the HelpCommand property to specify a Help topic to be displayed.
See Also
HelpContextId property
HelpCommand property
HelpFile property
ShowFileDialog method

# $ K HelpFile Property
Returns or sets the name of a Help file to be used with the application.
Applies To
Image Admin control
Syntax
object.HelpFile[=filename]
Data Type
String
See Also
HelpContextId property
HelpCommand property
HelpKey property
ShowFileDialog method

# $ K Image Property
Returns or sets the filename of the current image.
Applies To
Image Admin control
Syntax
object.Image[=filename]
Data Type
String
Remarks
When a new image is specified, the PageNumber property is set to 1. 
This property is used by the following Image Admin control methods:
Append	DeletePages	Insert	VerifyImage	
Replace	ShowFileDialog	ShowPrintDialog		

When the Image property changes, the following Admin control properties are updated:
CompressionInfo	ImageResolutionX	PageNumber	
CompressionType	ImageResolutionY	PageType	
FileType	ImageWidth		
ImageHeight	PageCount		
See Also
Images

# $ K ImageHeight Property
Returns the height of the current page.
Applies To
Image Admin control
Syntax
object.ImageHeight[=value]
Data Type
Long
Remarks
The page is part of the current image file, as specified by the Image property.
Height is indicated in pixels.
This property is read-only.
See Also
PageNumber property
ImageWidth property
Image property

# $ K ImageResolutionX Property
Returns the horizontal resolution of the current page.
Applies To
Image Admin control
Syntax
object.ImageResolutionX[=value]
Data Type
Long
Remarks
The page is part of the current image file, as specified by the Image property.
Resolution is in dots-per-inch (dpi).
This property is read-only.
See Also
ImageResolutionY property
Image property
PageNumber property

# $ K ImageResolutionY Property
Returns the vertical resolution of the current page.
Applies To
Image Admin control
Syntax
object.ImageResolutionY[=value]
Data Type
Long
Remarks
The page is part of the current image file, as specified by the Image property.
Resolution is in dots-per-inch (dpi).
This property is read-only.
See Also
ImageResolutionX property
Image property
PageNumber property

# $ K ImageWidth Property
Returns the width of the current page.
Applies To
Image Admin control
Syntax
object.ImageWidth[=value]
Data Type
Long
Remarks
The page is part of the current image file, as specified by the Image property.
Width is indicated in pixels.
This property is read-only.
See Also
ImageHeight property
Image property
PageNumber property

# $ K InitDir Property
Returns or sets the initial directory displayed in the ShowFileDialog dialog box.
Applies To
Image Admin control
Syntax
object.InitDir[=directoryname]
Data Type
String
Remarks
If the specified directory is invalid, the current directory appears on the dialog box.
See Also
ShowFileDialog method

# $ K PageCount Property
Returns the number of pages in the image file.
Applies To
Image Admin control
Syntax
object.PageCount[=value]
Data Type
Long
Remarks
The image file is specified by the Image property. 
The value is 0 (zero) if the image specified does not exist.
This property is read-only.
See Also
Image page
Image property

# $ K PageNumber Property
Returns or sets a page number in the current image file.
Applies To
Image Admin control
Syntax
object.PageNumber
Data Type
Long
Remarks
This property is available only at run-time (read and write).
The image file is specified by the Image property.
If the image file is not multi-page, this value must be 1.
See Also
Image page
Image property

# $ K PageType Property
Returns the image type of the specified page.
Applies To
Image Admin control
Syntax
object.PageType[=value]
Data Type
Integer (enumerated)
Setting	Description	
0	Unknown	
1	Black and white	
2	4-bit gray scale	
3	8-bit gray scale	
4	4-bit palettized	
5	8-bit palettized	
6	24-bit RGB	
7	24-bit BGR	
Remarks
The Image file is specified by the Image property; the page is specified by the PageNumber property.
If the Image property is empty, the value is 0 (zero).
This property is read-only.
See Also
Image types
Image property
PageNumber property

# $ K PrintAnnotations Property
Indicates if the Print Annotations check box in the Print dialog box is checked.
Applies To
Image Admin control
Syntax
object.PrintAnnotations[={True|False}]
Data Type
Boolean
Setting	Description	
True (default)	The check box is checked, and annotations are to be printed.	
False	The check box is not checked and annotations are not to be printed.	
Remarks
This property sets the state of the check box that is displayed when the dialog box is first opened. The user can accept or change this setting.
The Print dialog box is created by the ShowPrintDialog method.
See Also
Annotations
ShowPrintDialog method

# $ K PrintEndPage Property
Returns or sets the number of the last page to be printed.
Applies To
Image Admin control
Syntax
object.PrintEndPage
Data Type
Long
Remarks
The value set by this property is displayed when the Print dialog box is first opened. The user can then accept or change that value.
The default value is the value specified in the PageCount property.
The Print dialog box is created by the ShowPrintDialog method.
This property is available only at run-time (read and write).
See Also
Image page
PrintStartPage property
ShowPrintDialog method

# $ K PrintNumCopies Property
Returns or sets the default number of copies for the Print Dialog box.
Applies To
Image Admin control
Syntax
object.PrintNumCopies[=value]
Data Type
Long
Remarks
The Print dialog box is created by the ShowPrintDialog method.
The value set by this property is displayed when the Print dialog box is first opened. The user can then accept or change that value.
The value entered by the user is returned by the ShowPrintDialog method.
See Also
ShowPrintDialog method

# $ K PrintOutputFormat Property
Returns or sets the format of the printer output.
Applies To
Image Admin control
Syntax
object.PrintOutputFormat[=value]
Data Type
Integer (enumerated)
Setting	Description	
0	Pixel-to-pixel	
1	Actual size	
2 (default)	Fit to page	
Remarks
The Print dialog box is created by the ShowPrintDialog method.
The value set by this property is displayed when the Print dialog box is first opened. The user can then accept or change that value.
See Also
ShowPrintDialog method

# $ K PrintRangeOption Property
Returns or sets the print range option for the Print dialog box.
Applies To
Image Admin control
Syntax
object.PrintRangeOption[=value]
Data Type
Integer (enumerated)
Setting	Description	
0 (default)	All pages 	
1	Range of pages	
2	Current page	
Remarks
The value set by this property is displayed when the Print dialog box is first opened. The user can then accept or change that value.
If a value of 1 is set, the start and end pages are provided by the PrintStartPage and PrintEndPage properties.
The Print dialog box is created by the ShowPrintDialog method.
See Also
Image page
PrintStartPage property
PrintEndPage property

# $ K PrintStartPage Property
Returns or sets the number of the first page to be printed for the Print dialog box.
Applies To
Image Admin control
Syntax
object.PrintStartPage
Data Type
Long
Remarks
The value set by this property is displayed when the Print dialog box is first opened. The user can then accept or change that value.
The Print dialog box is created by the ShowPrintDialog method.
The default value is 1.
This property is available only at run-time (read and write).
See Also
Image page
PrintEndPage property
ShowPrintDialog method

# $ K PrintToFile Property
Indicates or sets if the Print to File check box in the Print dialog box is checked.
Applies To
Image Admin control
Syntax
object.PrintToFile[={True|False}]
Data Type
Boolean
Setting	Description	
True	The check box is checked, and data is to be printed to a file.	
False  (default)	The check box is not checked, and data is not to be sent to a file.	
Remarks
The Print dialog box is created by the ShowPrintDialog method.
This property sets the state of the check box that is displayed when the dialog box is first opened. The user can accept or change this setting.
 The state of the check box is returned by the ShowPrintDialog method.

# $ K Methods (Admin control)
AboutBox	GetSysFileType	
Append	GetUniqueName	
CreateDirectory	Replace	
Delete	SetSystemFileAttributes	
DeletePages	ShowFileDialog	
Insert	ShowPrintDialog	
GetSysCompressionInfo	VerifyImage	
GetSysCompressionType		

# $ K Append Method
Appends one or more pages to the current image.
Applies To
Image Admin control
Syntax
object.Append Source, SourcePage, NumPages [,CompressionType, CompressionInfo]
Arguments
Parameter	Data Type	Description	
Source	String	Specifies the image file that contains the page(s) to be appended.	
SourcePage	Long	Specifies the first page in the source image file to be appended.	
NumPages	Long	Specifies the number of pages from the source image file to append to the current image file. 	
CompressionType	Integer	(Optional)  Specifies the compression type to apply to the appended pages. If a type is not specified, the compression type of the source page(s) is used.	
CompressionInfo	Long	(Optional)  Specifies which compression options to apply to the appended pages. If options are not specified, the compression options of the source page(s) are used.	
Remarks
The current image file is specified by the Image property.
The current image, if one exists, must be in TIFF format, as it supports multiple pages.  If the image pages added are of another type, they will be converted to the file type format used by the current image.
You can append a single BMP file to a new file. If you do, the only compression type allowed is None, with no options.
If the CompressionType and CompressionInfo values specified are not compatible with a source page’s page type (color), the source file’s compression type and compression information are used in place of those arguments. 
If JPEG compression type is specified, and the compression argument is 0 (zero), a default JPEG value is used. The default value is 4096 (low compression, high quality).

See Also
Compression
CompressionType property
CompressionInfo property

# $ K CreateDirectory Method
Creates a user-defined directory.
Applies To
Image Admin control
Syntax
object.CreateDirectory Path
Arguments
Parameter	Data Type	Description	
Path	String	Specifies the path to be created.	
Remarks
If the Path contains more than one subdirectory that does not exist, an error is returned.

# $ K Delete Method
Deletes a user-specified object.
Applies To
Image Admin control
Syntax
object.Delete Object
Arguments
Parameter	Data Type	Description	
Object	String	Specifies the object to be deleted.	
Remarks
The Object specified can be a filename or a path.
A file cannot be deleted if it is being used by any Wang Image application or OCX control.

# $ K DeletePages Method
Deletes a user-specified range of pages from the image file.
Applies To
Image Admin control
Syntax
object.DeletePages StartPage, NumPages
Arguments
Parameter	Data Type	Description	
StartPage	Long	First page to be deleted.	
NumPages	Long	Number of pages to be deleted, including StartPage.	
Remarks
The image file is specified by the Image property.
Pages cannot be deleted if they are being used by any Wang Image application or OCX control.
If StartPage is within the image, and NumPages is greater than the number of pages in the image, all the pages after StartPage are deleted.
See Also
Image page

# $ K Insert Method
Inserts one or more user-specified pages into the current image file.
Applies To
Image Admin control
Syntax
object.Insert Source, SourcePage, DestinationPage, NumPages [,CompressionType, CompressionInfo]
Arguments
Parameter	Data Type	Description	
Source	String	Specifies the image file that contains the page(s) to be inserted.	
SourcePage	Long	Specifies which page in the source image file will be inserted.	
DestinationPage	Long	Specifies the page in the current image file the selected pages will be inserted before.	
NumPages	Long	Specifies the number of pages from the source image file to insert into the current image file. 	
CompressionType	Integer	(Optional)  Specifies the compression type to apply to the inserted pages. If a type is not specified, the compression type of the source image is used.	
  CompressionInfo	Long	(Optional)  Specifies which compression options to apply to the inserted pages. If options are not specified, the compression options of the source image are used.	
Remarks
The current image is specified by the Image property.
The current image must be in TIFF format, because it supports multiple pages. If the image pages added are of another type, they will be converted to the file type used by the current image.
You can insert a single BMP page into a new image.
If the CompressionType and CompressionInfo values specified are not compatible with a source page’s page type, the source file’s compression type and compression information is used in place of the arguments. 
If JPEG compression is specified, and the compression argument is 0 (zero), a default JPEG value is used. The default value is 4096 (low compression, high quality). 
See Also
Compression
CompressionType property
CompressionInfo property

# $ K GetSysCompressionInfo Method
Retrieves the system default compression information for a given page type.
Applies To
Image Admin control
Syntax
object.GetSysCompressionInfo(PageType)
Arguments
Parameter	Data Type	Description	
PageType	Integer	Specifies a page type.	
Setting	Description	
0	Unknown	
1	Black and white	
2	4-bit gray scale	
3	8-bit gray scale	
4	4-bit palettized	
5	8-bit palettized	
6	24-bit RGB	
7	24-bit BGR	
Return Value
Long
Returns the following bitwise compression information:
Setting	Description	
1	EOL – include or expect standard end of line bit sequences	
2	Packed lines – data is not byte aligned	
4	Prefixed EOLs – include or expect prefixed end of line bit sequences	
8	Compressed bit order, left to right	
16	Expanded bit order, left to right	
32	Negate – reverses black and white on expansion	
64	High compression, high quality	
128	High compression, medium quality	
256	High compression, low quality	
512	Medium compression, high quality	
1024	Medium compression, medium quality	
2048	Medium compression, low quality	
4096	Low compression, high quality	
8192	Low compression, medium quality	
16384	Low compression, low quality	
See Also
Compression
Image types
SetSystemFileAttributes method

# $ K GetSysCompressionType Method
Retrieves the system default compression type for a given page type.
Applies To
Image Admin control
Syntax
object.GetSystemCompressionType(PageType)
Arguments
Parameter	Data Type	Description	
PageType	Integer	Specifies a page type.	
Setting	Description	
0	Unknown	
1	Black and white	
2	4-bit gray scale	
3	8-bit gray scale	
4	4-bit palettized	
5	8-bit palettized	
6	24-bit RGB	
7	24-bit BGR	
Return Value
Integer (enumerated)
Returns one of the following compression types:
Setting	Description	
0	Unknown	
1	No compression	
2	Group 3 1D FAX	
3	Group 3 Modified Huffman	
4	Packed Bits	
5	Group 4 2D FAX	
6	JPEG	
7	(not used)	
8	Group 3 2D FAX	
9	LZW	
See Also
GetSystemFileAttributes method
Image types
Compression types

# $ K GetSysFileType Method
Retrieves the system default file type for a given page type.
Applies To
Image Admin control
Syntax
object.GetSysFileType(PageType)
Arguments
Parameter	Data Type	Description	
PageType	Integer	Specifies a page type.	
Setting	Description	
0	Unknown	
1	Black and white	
2	4-bit gray scale	
3	8-bit gray scale	
4	4-bit palettized	
5	8-bit palettized	
6	24-bit RGB	
7	24-bit BGR	
Return Value
Integer (enumerated)
One of the following file types is returned:
Setting	Description	
0	Unknown	
1	TIFF	
2	(not used)	
3	Bitmap (BMP)	
See Also
SetSystemFileAttributes method
Image types
File types

# $ K GetUniqueName Method
Generates a unique filename.
Applies To
Image Admin control
Syntax
object.GetUniqueName(Path, Template, Extension)
Arguments
Parameter	Data Type	Description	
Path	String	The name of the existing path where the filename will be generated.	
Template	String	The initial characters of the filename. Up to 4 characters can be used.	
Extension	String	The extension to be used with the generated filename. Up to 3 characters can be used.	
Return Value
A string that contains a fully-qualified filename.
Remarks
The filename is based on user-supplied path, template, and file extension information.

# $ K Replace Method
Replaces one or more user-specified pages into the current image file.
Applies To
Image Admin control
Syntax
object.Replace Source, SourcePage, DestinationPage, NumPages [,CompressionType, CompressionInfo]
Arguments
Parameter	Data Type	Description	
Source	String	Specifies the image file that contains the page(s) to be inserted.	
SourcePage	Long	Specifies the first page in the source image file that will be inserted.	
DestinationPage	Long	Specifies the first page in the current image file that will be replaced.	
NumPages	Long	Specifies the number of pages in the current image file to replace with pages from the source image file. 	
CompressionType	Integer	(Optional)  Specifies the compression type to apply to the replaced pages. If a type is not specified, the compression type of the source image is used.	
CompressionInfo	Long	(Optional)  Specifies which compression options to apply to the replaced pages. If options are not specified, the compression options of the source page are used.	
Remarks
The current image is specified by the Image property.
The replaced pages are converted to the file type of the current image (TIFF or BMP).
If you are replacing the single page in a BMP file, the only compression type allowed is None, with no options.
If the CompressionType and CompressionInfo values specified are not compatible with a source page’s page type, the source file’s compression type and compression information is used in place of the arguments. 
If JPEG compression is specified, and the compression argument is 0 (zero), a default JPEG value is used. The default value is 4096 (low compression, high quality). 

See Also
Compression
CompressionInfo property
CompressionType property

# $ K SetSystemFileAttributes Method
Allows the user to set how image files will be saved for a given type.
Applies To
Image Admin control
Syntax
object.SetSystemFileAttributes PageType, FileType, CompressionType, CompressionInfo
Arguments
Parameter	Data Type	Description	
PageType	Integer	Specifies a page type value.	
FileType	Integer	Specifies a file type value.	
CompressionType	Integer	Specifies compression information.	
CompressionInfo	Long	Specifies compression information.	
Remarks
These settings will be used when scanning files with the Image Scan control.
Defaults are set for a classification of the page type into one of three categories:
{bmc bullet.bmp}	Black and White
{bmc bullet.bmp}	Gray scale
{bmc bullet.bmp}	Color
If a compression option of 0 (zero) is specified for a JPEG compression type, then a default value will be used (4096 – low compression, high quality).
See Also
File types
Image types
Compression
GetSysCompressionType
GetSysFileType
GetSysCompressionInfo

# $ K ShowFileDialog Method
Allows a user to select a file specification from the file system displayed in an Open or Save As dialog box.
Applies To
Image Admin control
Syntax
object.ShowFileDialog DialogOption[,hParentWnd]
Arguments
Parameter	Data Type	Description	
DialogOption	Integer	Indicates what type of file dialog box will be displayed:
0= Open or Select
1= Save As	
hParentWnd	hWnd	(Optional)  Assigns a parent window handle to the displayed dialog box. 	
Remarks
The file specification selected by the user from the dialog box is set in the Image property when the method returns the value.
If a help file is not specified in the HelpFile property, a Help button will not be shown. This is true even if the show help flag is set in the Flags property.
Dialog boxes are modal.
See Also
HelpFile property
HelpContextId property
HelpCommand property
HelpKey property
Flags property
Image property

# $ K ShowPrintDialog Method
Presents a printer dialog box from which the user sets various print options.
Applies To
Image Admin control
Syntax
object.ShowPrintDialog [hParentWnd]
Arguments
Parameter	Data Type	Description	
hParentWnd	hWnd	(Optional)  Assigns a parent window handle to the displayed dialog box. 	
Remarks
The image property must be set to an existing image or an error is returned.
This function returns any parameters set by the user to the application via the corresponding properties.
Dialog boxes are modal. 
See Also
PrintAnnotations property
PrintEndPage property
PrintNumCopies property
PrintOutputFormat property
PrintRangeOption property
PrintStartPage property
PrintToFile property
Flags property
Image property

# $ K VerifyImage Method
Checks to see if the image specified in the Image property exists, and verifies level of access.
Applies To
Image Admin control
Syntax
object.VerifyImage(Option)
Arguments
Parameter	Data Type	Description	
Option	Long	Specifies the level of access to verify.	
		0 = Verify existence
1 = Verify read access
2 = Verify write access
3 = Verify read/write access	
Return Value
Boolean
Setting	Description	
True	The file exists and has the level of access specified by the Option argument.	
False 	The file does not exist, or does not have the level of access specified in the Option argument.	

# File Type argument
Setting	Description	
0	Unknown	
1	TIFF	
2	(not used)	
3	Bitmap (BMP)	
4	PCX	
5	DCX	
6	JPEG	
 7	XIF	

# PageType argument
Setting	Description	
0	Unknown	
1	Black and white	
2	4-bit gray scale	
3	8-bit gray scale	
4	4-bit palettized	
5	8-bit palettized	
6	24-bit RGB	
7	24-bit BGR	

# CompressionType argument
Setting	Description	
0	Unknown	
1	No compression	
2	Group 3 1D FAX	
3	Group 3 Modified Huffman	
4	Packed Bits	
5	Group 4 2D FAX	
6	JPEG	
7	(not used)	
8	Group 3 2D FAX	
9	LZW	

# CompressionInfo argument
Setting	Description	
1	EOL -- include or expect standard end of line bit sequences	
2	Packed lines -- data is not byte aligned	
4	Prefixed EOLs -- include or expect prefixed end of line bit sequences	
8	Compressed bit order, left to right	
16	Expanded bit order, left to right	
32	Negate -- reverses black and white on expansion	
64	High compression, high quality	
128	High compression, medium quality	
256	High compression, low quality	
512	Medium compression, high quality	
1024	Medium compression, medium quality	
2048	Medium compression, low quality	
4096	Low compression, high quality	
8192	Low compression, medium quality	
16384	Low compression, low quality