Converts a displayed image to the page type specified and optionally repaints the image.
Image Edit control
object.ConvertPageType PageType[,Repaint]
Parameter | Data Type | Setting |
PageType | Integer | The desired PageType setting |
Repaint | Boolean | True -- Image is repainted (default) |
Setting | Description |
1 | Black-and-white |
2 | Gray4 |
3 | Gray8 |
4 | Palettized4 (not available as a parameter for the ConvertPageType method unless the image presently has a 4-bit palette) |
5 | Palettized8 |
6 | RGB24 |
7 | BGR24 |
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 or SaveAs method must be invoked.
An image cannot be converted to a PageType of Palettized4 unless it presently has a 4-bit palette.
Image topics in Imaging Concepts
ImageModified property
PageType property
Save method
SaveAs method