Module:
sdynpy.fileio.sdynpy_psvSource: GitHub
Signature¶
class sdynpy.fileio.sdynpy_psv.VideoBitmap(obj: 'Any') -> 'None'Wrapper around COM video-bitmap info.
Attributes¶
| Name | Summary |
|---|---|
name | Info-object name. |
texture_columns | Number of columns in a stitched combined-file image. |
texture_coordinates | Texture coordinates for scan points. |
texture_count | Number of stitched video bitmaps. |
texture_rows | Number of rows in a stitched combined-file image. |
type | Info-object type identifier. |
name¶
Info-object name.
texture_columns¶
Number of columns in a stitched combined-file image.
texture_coordinates¶
Texture coordinates for scan points.
texture_count¶
Number of stitched video bitmaps.
texture_rows¶
Number of rows in a stitched combined-file image.
type¶
Info-object type identifier.
Methods¶
| Name | Summary |
|---|---|
__init__ | Initialize self. See help(type(self)) for accurate signature. |
get_3d_video_offset | Get the video-position offset in 3D coordinates. |
get_image | Return a PIL.Image.Image object for the bitmap. |
get_image_rect | Get the image rectangle in video coordinates. |
get_video_offset | Get the video-position offset in video coordinates. |
image_bytes | Return image bytes and dimensions. |
load_image_file | Load an image from the given file. |
save | Commit changes to the underlying file. |
set_image | Set the image from an array of bytes. |
__init__¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.__init__(self, obj: 'Any') -> 'None'Initialize self. See help(type(self)) for accurate signature.
get_3d_video_offset¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.get_3d_video_offset(self) -> 'Any'Get the video-position offset in 3D coordinates.
get_image¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.get_image(self) -> 'Image.Image'Return a PIL.Image.Image object for the bitmap.
get_image_rect¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.get_image_rect(self) -> 'Any'Get the image rectangle in video coordinates.
get_video_offset¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.get_video_offset(self) -> 'Any'Get the video-position offset in video coordinates.
image_bytes¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.image_bytes(self, fmt: 'GraphicFormatType' = <GraphicFormatType.BITMAP: 0>) -> 'tuple[bytes, int, int]'Return image bytes and dimensions.
Parameters¶
fmt
Graphic format to request from the COM interface.
Returns¶
tuple[bytes, int, int]
Image bytes, width, and height.
load_image_file¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.load_image_file(self, file_name: 'str') -> 'None'Load an image from the given file.
save¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.save(self) -> 'None'Commit changes to the underlying file.
set_image¶
Source: GitHub
def sdynpy.fileio.sdynpy_psv.VideoBitmap.set_image(self, image_bytes: 'bytes') -> 'None'Set the image from an array of bytes.