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
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 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?
|
|
|
|
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
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 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
|
|
|
|
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.