AppStreamCompose.ImageSource¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class AppStreamCompose.ImageSource¶
Describes the image a media operation should read, and how it should be loaded. After the operation has run, it also carries the dimensions the source image was loaded at.
Added in version 1.2.0.
- classmethod new(data)¶
- Parameters:
data (
GLib.Bytes) – The raw image data to process.- Returns:
- Return type:
Create a new
AppStreamCompose.ImageSourcefor the given image data.Added in version 1.2.0.
- copy()¶
- Returns:
- Return type:
Create a copy of an
AppStreamCompose.ImageSource, including any result data it may already carry.Added in version 1.2.0.
- get_data()¶
- Returns:
The image data.
- Return type:
Get the raw image data this source was created for.
Added in version 1.2.0.
- get_height()¶
- Returns:
The source height in pixels, or 0 if it is not known yet.
- Return type:
Get the height the source image was loaded at. Only valid after the media operation this source was passed to has completed successfully.
Added in version 1.2.0.
- get_render_size()¶
- Returns:
- width:
Destination of the render width.
- height:
Destination of the render height.
- Return type:
Get the size vector graphics are rendered at.
Added in version 1.2.0.
- get_width()¶
- Returns:
The source width in pixels, or 0 if it is not known yet.
- Return type:
Get the width the source image was loaded at. Only valid after the media operation this source was passed to has completed successfully.
Added in version 1.2.0.
- set_render_size(width, height)¶
- Parameters:
Set the size vector graphics should be rendered at. This has no effect on raster images, which are always loaded at their native size.
Added in version 1.2.0.