Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Slow image drawing on big images
Slow image drawing on big images [message #13831] |
Tue, 29 January 2008 14:31 ![Go to next message Go to previous message](theme/default/images/down.png) |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
I'm making a fax viewer application, that must retrieve a .tiff multipage file from a fax server and display it on screen.
So, I found following problems :
1 - lack (IMHO...) of support of multi-image tiffs
2 - *very* slow speed of image drawing using ImageCtrl
I guess point 1 is easy to solve, just adding few lines of code both in tif library and in Image class.
Point 2... I don't know how to handle it, so I have some questions.
I've seen that drawing is done in
void Image::Data::Paint(Draw& w, int x, int y, const Rect& src, Color c)
in ImageX11.cpp. As I can understand, the image is converted to an X11 one on the fly just before drawing... It would maybe make sense to keep (optionally) the X11 converted image buffered so on next paints it goes faster.
As is it now when I change control size (dragging main window) the pic takes some thenths of second to redraw, so real time pan/zoom is impossible.
Any smart solution ?
Ciao
Max
|
|
|
![Read Message Read Message](theme/default/images/read.png) |
|
Slow image drawing on big images
By: mdelfede on Tue, 29 January 2008 14:31
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mirek on Tue, 29 January 2008 14:35
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mdelfede on Tue, 29 January 2008 15:03
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mirek on Tue, 29 January 2008 19:38
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mirek on Tue, 29 January 2008 20:04
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mdelfede on Tue, 29 January 2008 22:27
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mirek on Tue, 29 January 2008 22:30
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mdelfede on Tue, 29 January 2008 23:56
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mirek on Wed, 30 January 2008 09:01
|
![Read Message Read Message](theme/default/images/read.png) |
|
Re: Slow image drawing on big images
By: mdelfede on Wed, 30 January 2008 10:33
|
Goto Forum:
Current Time: Mon May 06 03:10:32 CEST 2024
Total time taken to generate the page: 0.01733 seconds
|