Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2007

Tip: Looking for answers? Try searching our database.

Compressed Bitmap

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Samuel - 27 Oct 2007 23:14 GMT
I need to read a tiff Image and change it slightly.

Currently I create a bitmap then I draw the original image and do the
changes.

Since the tiff is very large in size the bitmap takes a huge amount of
memory

Is there anyway to create a bitmap and keep the image compressed?

Thank you in advance
Samuel
chad - 30 Oct 2007 03:59 GMT
there is no such thing as a "compressed bitmap". Bitmaps are inherently
uncompressed. Therefore, when you are reading the tiff image into a bitmap
that you created, eg...

dim btmap as new bitmap("yourfile.tiff")
you are actually creating a bitmap with 4 channels ARGB.

You can't compress the btmp in memory. You can, however, save the channels
into an array, and if you ignore the A channel, you can reduce the memory
footprint.

If you want to compress the output file, you can save the bitmap as jpg,
like btmap.save()

> I need to read a tiff Image and change it slightly.
>
[quoted text clipped - 8 lines]
> Thank you in advance
> Samuel
Samuel - 30 Oct 2007 14:03 GMT
Thank you for that

> there is no such thing as a "compressed bitmap". Bitmaps are inherently
> uncompressed. Therefore, when you are reading the tiff image into a bitmap
[quoted text clipped - 22 lines]
>> Thank you in advance
>> Samuel
Mindgeek - 30 Oct 2007 19:51 GMT
> there is no such thing as a "compressed bitmap".

Sure there is. Bitmaps can use RLE (Run-Length Encoding) for compression.
http://www.fileformat.info/mirror/egff/ch09_03.htm

> there is no such thing as a "compressed bitmap". Bitmaps are inherently
> uncompressed. Therefore, when you are reading the tiff image into a bitmap
[quoted text clipped - 22 lines]
>> Thank you in advance
>> Samuel

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.