PocketPC: Loading images [message #446999] |
Tue, 07 December 2004 15:17 |
Stefan Pietsch 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 |
Charlie Surface 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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03009 seconds