Example-VB | Example-VC++ |
Converts a displayed image to the page type specified and optionally repaints the image.
Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
Ö | Imaging for Windows 95 and 98 |
Ö | Imaging for Windows NT 4.0 |
Image Edit control
object.ConvertPageType PageType[,Repaint]
Parameter | Data Type | Setting |
PageType | Integer (enumerated) |
The desired PageType setting |
Repaint | Boolean | True Image is repainted (default) False Image is not repainted |
None
An image must be displayed before the ConvertPageType method can be invoked. If the Repaint parameter is not specified, True is entered as a default (the image is repainted). Invoking this method sets the ImageModified property to True.
To save the converted image, the Save, SaveAs, or SavePage method must be invoked.
An image cannot be converted to a PageType of Palettized4 unless it presently has a 4-bit palette.
Invoking the ConvertPageType method sets the ImageModified property to True.