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 » Event on DrawDrawing
Re: Event on DrawDrawing [message #27492 is a reply to message #27488] Wed, 21 July 2010 08:20 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
uhmmm... DrawDrawing is not "interactive" piece of code, you give it list of draw commands and it does produce the final drawing.

What you want should be done by having some GUI drawing area where you catch mouse events, operate upon some data list which contains nodes, then produce the final drawing from the modified data. If you do it quickly enough (for not too many nodes, so GUI can be redrawn fast), such simple approach will work.
(Upp framework gives you code to create GUI, to catch mouse events, to handle nodes lists (and modify them), and to draw vector graphics, but that interactive part of changing proper nodes data and putting this into some kind of interactive loop is up to you)

If you want to create true vector editor, you should probably consider something smarter and more complex with caching parts of unchanged image/layers and operate with nodes/changes in some smart way to redraw only smaller area of picture.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image from URL
Next Topic: libjpeg-turbo
Goto Forum:
  


Current Time: Wed Jun 18 11:39:47 CEST 2025

Total time taken to generate the page: 0.05312 seconds