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 » How to efficiently update a large Image?
Re: How to efficiently update a large Image? [message #22899 is a reply to message #22633] Wed, 26 August 2009 07:57 Go to previous messageGo to previous message
Tom1
Messages: 1305
Registered: March 2007
Ultimate Contributor
Hi Mirek,

Sorry for the delay in my response -- been out of the office for a while.

Anyway, thanks for adding this functionality. In my application it really gives me far more that 2.5x speed boost.

Unfortunately, there is still some problem with X11. Generally, the new SetSurface works OK with partial updates and offsets, but when dragging another window over a window with image contents updated with SetSurface, the view gets severely scrambled.

virtual void Paint(Draw &draw){
  // The image to draw is in ImageBuffer ib;
  Rect paintrect=draw.GetPaintRect();
  SetSurface(draw,paintrect,ib,ib.GetSize(),Point(paintrect.left,paintrect.top));
}


With GDI it's working correctly.

// Tom
 
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: Color menu choice
Next Topic: Support for 2bpp tiff images
Goto Forum:
  


Current Time: Sat Jul 05 17:40:51 CEST 2025

Total time taken to generate the page: 0.03590 seconds