[EMAIL PROTECTED] wrote: > I find a way to resize fastly my image by using wxDc.SetUserSale > > Now I would like to get the device coordinates (x,y,width,height) in the > > a2dCanvasView::PaintBackground(int x,int y,int width, int height) > > i try the WorldToDeviceX but it returns me bad result like x = 1400 and > my resolution is 1280*600
I think that is because the buffer is always a bit bigger to prevent constant redraws when resizing a window. If you want the size of the window, you can use m_display->GetClientSize(x,y) see wxWindow docs. Klaas -- Unclassified ------------------------------------------------------------------------- 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
