Allias Nicolas wrote: > Forgive my english, I'm french :s Your English is far better than my French ;-)
> I'd like to get all the objects which are in the floatcanvas, Do you want the image as displayed? Or do you want the objects as individual objects? > the only > way I found to do it is to call saveAsPNG and re-open with PIL Image > or wx.Image... > Is there any faster and better way to do it ? Yes. FloatCanvas is fully double-buffered, so what is displayed on the screen is stored in an offscreen bitmap: Canvas._Buffer it's a wx.Bitmap, and you can turn it into a wx.Image with \: Canvas._Buffer.ConvertToImage() Another note: > When I put a bitmap in the canvas, sometimes I call dc.DrawLinePoint > to make some segments (for measures), Are you sure you can't use a FloatCanvas Line Object instead of using the dc call? Part of the point of FloatCanvas is to provide an easier interface to drawing than DCs. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
