Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Painter and viewports
Painter and viewports [message #43961] |
Sat, 29 November 2014 12:30  |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi, I'm using painter to draw inside a big working area, let's say of 20'000 (millimeters)
size, given by a rectangle from (-10000, -10000) to (10000, 10000).
To do this, I write:
PaintingPainter sw(20000, 20000);
sw.Translate(-10000, -10000);
I guess it's correct.
Now I want to take a viewport of my big area and display it inside a control, like
following picture:

Viewport is given by its origin and a zoom/scale factor.
I can't find a way to do it....
|
|
|
Goto Forum:
Current Time: Tue May 13 01:55:43 CEST 2025
Total time taken to generate the page: 0.02272 seconds
|