wx.ImageDataObject¶
wx.ImageDataObject is a specialization of wx.DataObject for image data.
It can be used e.g. when you need to put on and retrieve from the clipboard a wx.Image with its metadata (like image resolution).
Added in version 4.1/wxWidgets-3.1.5.
Class Hierarchy¶
Methods Summary¶
Constructor, optionally passing an image (otherwise use |
|
Returns a list of wx.DataFormat objects which this data object |
|
Returns the image associated with the data object. |
|
Sets the image stored by the data object. |
Properties Summary¶
See |
|
Class API¶
- class wx.ImageDataObject(CustomDataObject)¶
Possible constructors:
ImageDataObject(image=NullImage) -> None
ImageDataObject is a specialization of DataObject for image data.
Methods¶
- __init__(self, image=NullImage)¶
Constructor, optionally passing an image (otherwise use
SetImage
later).- Parameters:
image (wx.Image)
- Return type:
None
- GetAllFormats(self, dir=DataObject.Get)¶
Returns a list of wx.DataFormat objects which this data object supports transferring in the given direction.
- Return type:
Any
- SetData(self, format, buf)¶
- Return type:
bool
- SetImage(self, image)¶
Sets the image stored by the data object.
- Parameters:
image (wx.Image)
- Return type:
None
Properties¶
- AllFormats¶
See
GetAllFormats