ConvertPageType Method

Converts a displayed image to the page type specified and optionally repaints the image.

Applies To

Image Edit control

Syntax

object.ConvertPageType PageType[,Repaint]

Arguments

Parameter

Data Type

    Setting

PageType

Integer
(enumerated)

The desired PageType setting

Repaint

Boolean

True -- Image is repainted (default)
False -- Image is not repainted


PageType Argument

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


Return Value

None

Remarks

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.

See Also

Image topics in Imaging Concepts

ImageModified property

PageType property

Save method

SaveAs method