// wxCanvasObject
//----------------------------------------------------------------------------
+IMPLEMENT_CLASS(wxCanvasObject, wxEvtHandler)
+
wxCanvasObject::wxCanvasObject()
{
// the default event handler is just this object
// wxCanvasObjectGroup
//----------------------------------------------------------------------------
+IMPLEMENT_CLASS(wxCanvasObjectGroup, wxCanvasObject)
+
wxCanvasObjectGroup::wxCanvasObjectGroup(double x, double y)
{
lworld.Translate(x,y);
// wxCanvasObjectRef
//----------------------------------------------------------------------------
+IMPLEMENT_CLASS(wxCanvasObjectRef, wxCanvasObject)
+
wxCanvasObjectRef::wxCanvasObjectRef(double x, double y, wxCanvasObject* obj)
: wxCanvasObject()
{
// wxCanvasRect
//----------------------------------------------------------------------------
+IMPLEMENT_CLASS(wxCanvasRect, wxCanvasObject)
+
wxCanvasRect::wxCanvasRect( double x, double y, double w, double h , double radius )
: wxCanvasObject()
{
if (cworld->GetRotation())
tmp = tmp.Rotate(-cworld->GetRotation()/180.0 * pi, centr, TRUE, NULL );
- bmp = tmp.ConvertToBitmap();
+ bmp = wxBitmap(tmp);
// create cached bitmap
m_cBitmap = bmp;
wxRect sub_rect( clip_x, clip_y, clip_width, clip_height );
wxBitmap sub_bitmap( bitmap->GetSubBitmap( sub_rect ) );
- wxImage image( sub_bitmap );
+ wxImage image( sub_bitmap.ConvertToImage() );
// local coordinates
int start_x = clip_x - tmparea.x;
}
}
- sub_bitmap = image.ConvertToBitmap();
+ sub_bitmap = wxBitmap(image);
wxDC *dc = m_admin->GetActive()->GetDC();
dc->DrawBitmap( sub_bitmap, clip_x, clip_y );