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 #17296 is a reply to message #17291] Wed, 06 August 2008 00:29 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

luzr wrote on Tue, 05 August 2008 20:54

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


I want to understand how can I optimized in drawing and to use in future! In future I can have a control that Paint will have more operations and will be more optimized to save image and set it in Paint method.

[Updated on: Wed, 06 August 2008 00:31]

Report message to a moderator

 
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: Tue Jun 10 14:23:27 CEST 2025

Total time taken to generate the page: 0.02996 seconds