Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Painter and viewports
Painter and viewports [message #43961] Sat, 29 November 2014 12:30 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
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:

index.php?t=getfile&id=4673&private=0

Viewport is given by its origin and a zoom/scale factor.
I can't find a way to do it....
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Should RGBA have got 4 arguments constructor?
Next Topic: Simplest way to add jpg or png to a layout, for logos, image visble off/on for status, etc.
Goto Forum:
  


Current Time: Fri May 03 20:29:29 CEST 2024

Total time taken to generate the page: 0.02012 seconds