get_image method

get_image

Returns a Thumbnail Image object (20% of real size).

def get_image(self):
    ...

get_image

Returns a Thumbnail Image object with specified size.

Returns

Image object.

def get_image(self, image_size):
    ...
ParameterTypeDescription
image_sizeaspose.pydrawing.SizeSize of the image to create.

Examples

The following example shows how to converting slides to images with custom sizes using C#.

get_image

Returns a Thumbnail tiff image object with specified parameters.

Returns

Image object.

def get_image(self, options):
    ...
ParameterTypeDescription
optionsITiffOptionsTiff options.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(InvalidOperationException))Thrown when options.SlideLayoutOption is NotesCommentsLayoutingOptions and its property NotesPosition takes the value NotesPositions.BottomFull.

get_image

Returns a Thumbnail Image object.

Returns

Image object.

def get_image(self, options):
    ...
ParameterTypeDescription
optionsIRenderingOptionsRendering options.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(InvalidOperationException))Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull

get_image

Returns a Thumbnail Image object with custom scaling.

Returns

IImage object.

def get_image(self, scale_x, scale_y):
    ...
ParameterTypeDescription
scale_xfloatThe value by which to scale this Thumbnail in the x-axis direction.
scale_yfloatThe value by which to scale this Thumbnail in the y-axis direction.

Examples

The following example shows how to generate thumbnails from PowerPoint Presentation.

        The following example shows how to converting slides to bitmap and saving the images in PNG.

        The following example shows how to convert PowerPoint PPT/PPTX to JPG.

        The following example shows how to convert PowerPoint PPT/PPTX to JPG with customized dimensions.

get_image

Returns a Thumbnail Image object with specified size.

Returns

Image object.

def get_image(self, options, image_size):
    ...
ParameterTypeDescription
optionsIRenderingOptionsRendering options.
image_sizeaspose.pydrawing.SizeSize of the image to create.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(InvalidOperationException))Thrown when options.SlideLayoutOption is NotesCommentsLayoutingOptions and its property NotesPosition takes the value NotesPositions.BottomFull.

get_image

Returns a Thumbnail Image object with custom scaling.

Returns

Bitmap objects.

def get_image(self, options, scale_x, scale_y):
    ...
ParameterTypeDescription
optionsIRenderingOptionsRendering options.
scale_xfloatThe value by which to scale this Thumbnail in the x-axis direction.
scale_yfloatThe value by which to scale this Thumbnail in the y-axis direction.

Examples

The following example shows how to converting slides With notes and comments to Images using C#.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(InvalidOperationException))Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull

See Also