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).
New in version 4.1/wxWidgets-3.1.5.
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. |
Class API¶wx.ImageDataObject(CustomDataObject)¶Possible constructors:
ImageDataObject(image=NullImage)
ImageDataObject is a specialization of DataObject for image data.
__init__(self, image=NullImage)¶Constructor, optionally passing an image (otherwise use SetImage later).
image (wx.Image) –
GetAllFormats(self, dir=DataObject.Get)¶Returns a list of wx.DataFormat objects which this data object supports transferring in the given direction.
SetData(self, format, buf)¶bool
AllFormats¶See GetAllFormats