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

Notification

Icon
Error

Options
Go to last post Go to first unread
ran1jeet  
#1 Posted : Monday, November 29, 2004 2:35:00 PM(UTC)
ran1jeet

Rank: Member

Groups: Member
Joined: 11/24/2004(UTC)
Posts: 5

Hello All, I am creating new bitmap using Bitmpaviewer.bitmap.createNew and drwaing 2 bitmap images on it and saving it to the file. When the saved image is a JPG image then the size doesnt have much change in it. but when the image is tif image then the size is increasing. The size is increasing from 90KB to 2.2MB, Its very huge increase. Why is this happening? Please help me regarding this. Thanks for your help ran1jeet
Andrew  
#2 Posted : Monday, November 29, 2004 4:02:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
It is likely when you save into TIFF file, you save it with no compression. Could you post a code snippet you use to save image to TIFF file?
ran1jeet  
#3 Posted : Monday, November 29, 2004 9:20:00 PM(UTC)
ran1jeet

Rank: Member

Groups: Member
Joined: 11/24/2004(UTC)
Posts: 5

Hi andrew, The problem is sorted out. Actually i converted the Indexed bitmap image(TIFF file) to the 24RGB image. This is why the size of the image is increasing, now i changed the logic so that the 24RGBimage is again converted to the 1Indexed image before saving it to the local disk so that it occupies less space. Thanks for your reply, if i face any problems then i will let you know. Regards, ran1jeet :D
ran1jeet  
#4 Posted : Wednesday, December 01, 2004 3:56:00 PM(UTC)
ran1jeet

Rank: Member

Groups: Member
Joined: 11/24/2004(UTC)
Posts: 5

Hi All and Andrew, When i am converting the image back to the 1bppIndexed bitmap, its saving fine. The size is same as it was before but when i am trying to open the image in the Imaging, Microsoft photo editor or Paint, its just showing the black image instead of the original image. When i save without converting it to 1bppindexed then the size is increasing and image is seen properly. WHy it is showing black image instead of original image when i am coverting it to 1bppindexed? Please help me out to solve the problem. Thanks And Regards, Ranjith
Andrew  
#5 Posted : Friday, December 03, 2004 3:24:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
Hi Ranjith, Please submit case, I will send you an update which should fix this problem.

Edited by user Friday, May 23, 2008 3:44:30 PM(UTC)  | Reason: Not specified

Users browsing this topic
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.