get_thumbnail method
Contents
[
Hide
]get_thumbnail
Returns a Thumbnail Image object (20% of real size).
def get_thumbnail(self):
...
get_thumbnail
Returns a Thumbnail Bitmap object.
Returns
Bitmap objects.
def get_thumbnail(self, options):
...
Parameter | Type | Description |
---|---|---|
options | IRenderingOptions | Rendering options. |
Exceptions
Exception | Description |
---|---|
RuntimeError(Proxy error(InvalidOperationException)) | Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull |
get_thumbnail
Returns a Thumbnail Bitmap object with specified size.
Returns
Bitmap object.
def get_thumbnail(self, image_size):
...
Parameter | Type | Description |
---|---|---|
image_size | aspose.pydrawing.Size | Size of the image to create. |
Examples
The following example shows how to converting slides to images with custom sizes using C#.
get_thumbnail
Returns a Thumbnail tiff bitmap object with specified parameters.
Returns
Bitmap object.
def get_thumbnail(self, options):
...
Parameter | Type | Description |
---|---|---|
options | ITiffOptions | Tiff options. |
Exceptions
Exception | Description |
---|---|
RuntimeError(Proxy error(InvalidOperationException)) | Thrown when options.SlideLayoutOption is NotesCommentsLayoutingOptions and its property NotesPosition takes the value NotesPositions.BottomFull. |
get_thumbnail
Returns a Thumbnail Bitmap object with custom scaling.
Returns
Bitmap object.
def get_thumbnail(self, scale_x, scale_y):
...
Parameter | Type | Description |
---|---|---|
scale_x | float | The value by which to scale this Thumbnail in the x-axis direction. |
scale_y | float | The 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_thumbnail
Returns a Thumbnail Bitmap object with specified size.
Returns
Bitmap objects.
def get_thumbnail(self, options, image_size):
...
Parameter | Type | Description |
---|---|---|
options | IRenderingOptions | Rendering options. |
image_size | aspose.pydrawing.Size | Size of the image to create. |
Exceptions
Exception | Description |
---|---|
RuntimeError(Proxy error(InvalidOperationException)) | Thrown when options.SlideLayoutOption is NotesCommentsLayoutingOptions and its property NotesPosition takes the value NotesPositions.BottomFull. |
get_thumbnail
Returns a Thumbnail Bitmap object with custom scaling.
Returns
Bitmap objects.
def get_thumbnail(self, options, scale_x, scale_y):
...
Parameter | Type | Description |
---|---|---|
options | IRenderingOptions | Rendering options. |
scale_x | float | The value by which to scale this Thumbnail in the x-axis direction. |
scale_y | float | The 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
Exception | Description |
---|---|
RuntimeError(Proxy error(InvalidOperationException)) | Thrown when notesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull |
See Also
- class
IRenderingOptions
- class
ITiffOptions
- class
Slide
- module
aspose.slides
- library
Aspose.Slides