Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » PocketPC: Loading images
PocketPC: Loading images [message #446999] Tue, 07 December 2004 15:17 Go to next message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hello,

I read a image in my application and scale it on an existing thumbnail-image
with the following code:

Image image = new Image(null, 50, 50);

ImageData fileImageData = new ImageData(filename);

Image fileImage = new Image(null, fileImageData);

GC gc = new GC(image);

Rectangle r = fileImage.getBounds();

gc.drawImage(fileImage,0,0,r.width,fileImage.height,0,0,49,4 9);

gc.dispose();

fileImage.dispose();


If I process an 60 kByte-JPG-image my application need around 3 seconds to
execute the code.
If I process an 3 kByte-GIF-image my application need around 0,4 seconds to
execute the code.

Is there any possibility to increase the speed?

Bye Stefan
Re: PocketPC: Loading images [message #447002 is a reply to message #446999] Tue, 07 December 2004 16:04 Go to previous message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
Check out Eclipse bug 53443. It is a request for native image loading.

Charlie


Stefan Pietsch wrote:
> Hello,
>
> I read a image in my application and scale it on an existing thumbnail-image
> with the following code:
>
> Image image = new Image(null, 50, 50);
>
> ImageData fileImageData = new ImageData(filename);
>
> Image fileImage = new Image(null, fileImageData);
>
> GC gc = new GC(image);
>
> Rectangle r = fileImage.getBounds();
>
> gc.drawImage(fileImage,0,0,r.width,fileImage.height,0,0,49,4 9);
>
> gc.dispose();
>
> fileImage.dispose();
>
>
> If I process an 60 kByte-JPG-image my application need around 3 seconds to
> execute the code.
> If I process an 3 kByte-GIF-image my application need around 0,4 seconds to
> execute the code.
>
> Is there any possibility to increase the speed?
>
> Bye Stefan
>
>
Previous Topic:could not use transparent *.png's in swt
Next Topic:SWT Graphics - drawing on an image + zooming
Goto Forum:
  


Current Time: Sun Oct 25 22:47:19 GMT 2020

Powered by FUDForum. Page generated in 0.01669 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top