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 » Developing U++ » Bazaar » Image Contol with Zoom/pan/scrollbar capabilities
Image Contol with Zoom/pan/scrollbar capabilities [message #11880] Sat, 29 September 2007 11:35
nasos_i is currently offline  nasos_i
Messages: 5
Registered: September 2007
Promising Member
Here is my first attempt to make a Zoom Image Control in Upp. It works nice, but needs some reshaping in design, some additional controls and performance tweaking.

Supports:
1.MouseWheel ZoomIn/ZoomOut
2.LeftButton pan
3.Scrollbar pan
4.Cursor Position indicator (not complete)
5.Zoom indicator
6.Right control (Fit all, Actual size)

TODO:
1. Some class redesign.
2. Rectangle pick capability.
3. Ruler?
4. Zoom performance tweaking.
5. Maybe define modes (like zoom window)
6. Change some things in zoom algorithm, so that it sticks to "double" coordinates and not "int" (Try to zoom in very much to see what I mean)

I would like suggestions in the rescaling (that is used in zoom) to make the algorithm faster. - I was thinking using some cache on ImageRaster, but couldn't make it work. I will think of ImageMaker.


P.S. I am using upp for less than 1 Week, don't shoot the pianist please.


Unzip the attachment in MyApps folder.

[Updated on: Sat, 29 September 2007 12:38]

Report message to a moderator

Previous Topic: The role of Convert diagram
Next Topic: Stable Roommate Algorithm: interactive algorithm
Goto Forum:
  


Current Time: Mon Jul 06 21:28:03 CEST 2020

Total time taken to generate the page: 0.00934 seconds