View Single Post
  #1 (permalink)  
Old April 12th, 2006, 11:28 AM
mike_abc mike_abc is offline
Authorized User
Points: 173, Level: 3
Points: 173, Level: 3 Points: 173, Level: 3 Points: 173, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting chunks from a graphic file

Hi,

is there a way (in VB.net, actually VB.net for PocketPC) to read chunks from a graphic (bitmap, jpeg) file instead of opening the whole file and assigning it to a bitmap variable ?

So far, I would do :

dim bmpTest as new bitmap("some_file")
dim rect as new rectangle(0, 0, 100, 100)

dim bmpChunk as bitmap
bmpChunk = bmpTest.Clone(rect, ...)

But this DOES get the whole bitmap into memory before chunking it.

The reason should be obvious : in Windows Mobile memory is scarce...
Reply With Quote