Skip to content

Wx EmptyImage, BitmapFromImage deprecated in favor of Image and Bitmap #798

@rahulporuri

Description

@rahulporuri

image = wx.EmptyImage(*sz)
image.SetDataBuffer(arr.data)
bmp = wx.BitmapFromImage(image, depth=-1)

enable/kiva/cairo.py

Lines 97 to 99 in 6850385

image = wx.EmptyImage(self.width, self.height)
image.SetDataBuffer(arr.data)
bmp = wx.BitmapFromImage(image, depth=-1)

First reported by @fred4ets in enthought/chaco#531 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions