Ok i have fixed everything I have got problem because I used the
GetUserToDeviceTransform instead of GetMappingMatrix know everything
works fine ;-)
here the code if perhaps someone , one time , will need it
void MyLayer::PaintBackground(int x,int y,int width, int height)
{
a2dCanvasView::PaintBackground(x,y,width,height);
double xScale = 1.0f/m_drawer2D->GetMappingMatrix ().Get_scaleX();
double yScale = 1.0f/m_drawer2D->GetMappingMatrix ().Get_scaleY();
int xOriginDevice = m_drawer2D->WorldToDeviceX (0);
int yOriginDevice = m_drawer2D->WorldToDeviceY (0);
wxMemoryDC memDc;
wxDC* dc = m_drawer2D->GetRenderDC();
memDc.SelectObject(m_backgroundImage);
memDc.SetUserScale(xScale,yScale);
memDc.SetDeviceOrigin(-xOriginDevice,-yOriginDevice);
//best solution but flicker
//dc->Blit(x,y,width,height,&memDc,x,y);
//no so bad solution don't flicker
dc->Blit(0,0,m_drawer2D->GetWidth(),m_drawer2D->GetHeight(),&memDc,0,0);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev