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 » U++ Widgets - General questions or Mixed problems » How to implent a rubber band Class in u++
Re: How to implent a rubber band Class in u++ [message #17291 is a reply to message #17286] Tue, 05 August 2008 19:54 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
tojocky wrote on Tue, 05 August 2008 11:37

luzr wrote on Tue, 05 August 2008 16:44

The problem is

iw.DrawDrawing(0, 0, old_size.cx, old_size.cy, resultpaint);

creates very deep recursion in Drawing definition (other drawing within drawin is stored as operation). That results in slow speed and huge VM.

Mirek


What another method will be more faster than DrawDrawing? May be DrawImage?


You are limited here by the speed of DrawLine.

Anyway, 3000 points sounds like quite a lot for rubber-band. Maybe you could try to simplifify it a bit?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FileList problems with extensions and pop-ups
Next Topic: How to turn off special chars in RichEdit?
Goto Forum:
  


Current Time: Mon Jun 09 12:14:00 CEST 2025

Total time taken to generate the page: 0.08361 seconds