@@ -150,11 +150,30 @@ cairo.ImageSurface objects. In order to use this module you will need
150150to have the Cairo library and its dependencies installed , as well as
151151the pycairo Python package. For Linux and other unix-like systems you
152152most likely have what you need installed already , or can easily do so
153- from your package manager application. See the wx.lib.wxcairo module's
154- docstring for notes on where to get what you need for Windows or Mac.
155- This module uses ctypes , and depending on platform it may need to find
156- and load additional dynamic libraries at runtime in addition to cairo.
157-
153+ from your package manager application. See the wx.lib.wxcairo
154+ module's docstring for notes on where to get what you need for Windows
155+ or Mac. This module uses ctypes , and depending on platform it may
156+ need to find and load additional dynamic libraries at runtime in
157+ addition to cairo. The pycairo package used needs to be new enough to
158+ export the CAPI structure in the package namespace. I believe that
159+ started sometime in the 1.4.x release series.
160+
161+ Added the wx.lib.graphics module , which is an implementation of the
162+ wx.GraphicsContext API using Cairo (via wx.lib.wxcairo). This allows
163+ us to be totally consistent across platforms , and also use Cairo to
164+ implement some things that are missing from the GraphicsContext API.
165+ It's not 100% compatible with the GraphicsContext API , but probably
166+ close enough to be able to share code between them if desired , plus it
167+ can do a few things more.
168+
169+ Updated wx.Bitmap.CopyFromBuffer to be a bit more flexible. You can
170+ now specify the format of the buffer , and the CopyFromBufferRGBA is
171+ now just a wrapper around CopyFromBuffer that specifies a different
172+ format than the default. Also added the complement method ,
173+ CopyToBuffer. See the docstring for CopyFromBuffer for details on the
174+ currently allowed buffer formats. The existing wx.BitmapFromBuffer
175+ factory functions are also now implemented using the same underlying
176+ code as CopyFromBuffer.
158177
159178
160179
0 commit comments