Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
ChingYen  
#1 Posted : Tuesday, March 1, 2011 6:11:50 PM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
Joined: 3/3/2008(UTC)
Posts: 185

Thanks: 8 times
Hi,

We need to process a lot of JPG @ once, and it took long time to load those photo. Just wondering, if we just need "part" of the JPG photo, is there any way we can just load part of them rather than full image to speed up?

I read this article, but not sure how can it help

http://forums.aurigma.co...essing-huge-bitmaps.aspx

Please advise.

Dmitry.Obukhov  
#2 Posted : Wednesday, March 2, 2011 4:06:50 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Administration
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Ching-Yen,

I assume the way described in the topic you found can help you. Here is the answer your question:

Quote:

The only way to avoid this problem is to process it part by part instead of loading entire bitmap at once. Currently Graphics Mill is not able to load a bitmap partially (the only exception is JPEG file format, it is described below more detailed). However you can minimize the memory usage in the following way:

1. Load an original file.

2. Split it to several smaller bitmaps using the Crop transform and save them to the temporary files.

3. Unload the original image.

4. Apply the necessary effect to each part of the original bitmap.

5. Create an empty bitmap of the original size.

6. Load the bitmap parts and draw them onto the empty bitmap.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

ChingYen  
#3 Posted : Wednesday, March 2, 2011 10:44:16 AM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
Joined: 3/3/2008(UTC)
Posts: 185

Thanks: 8 times
Dmitry.Obukhov wrote:
Ching-Yen,

I assume the way described in the topic you found can help you. Here is the answer your question:

Quote:

The only way to avoid this problem is to process it part by part instead of loading entire bitmap at once. Currently Graphics Mill is not able to load a bitmap partially (the only exception is JPEG file format, it is described below more detailed). However you can minimize the memory usage in the following way:

1. Load an original file.

2. Split it to several smaller bitmaps using the Crop transform and save them to the temporary files.

3. Unload the original image.

4. Apply the necessary effect to each part of the original bitmap.

5. Create an empty bitmap of the original size.

6. Load the bitmap parts and draw them onto the empty bitmap.

Yes, we do aware of load a bitmap partially is only valid for JPEG format. Can we have some sample on that? Example, I have a photo 8000 x 8000 and I would like to load from the rect (0, 400, 8000, 3000)

It would be really appreciate if sample code could be provided.

Dmitry.Obukhov  
#4 Posted : Thursday, March 3, 2011 10:40:00 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Administration
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ching-Yen,

I created console sample application, which allows to crop and to load a part of image only. I attached to your reference. Please download, and try it out. If you have any questions about it, please let me know.

File Attachment(s):
CropPartSample.zip (2,670kb) downloaded 12 time(s).
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.