p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Pro VB.NET 2002/2003 (http://p2p.wrox.com/forumdisplay.php?f=74)
-   -   Getting chunks from a graphic file (http://p2p.wrox.com/showthread.php?t=41196)

mike_abc April 12th, 2006 11:28 AM

Getting chunks from a graphic file

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...

All times are GMT -4. The time now is 03:44 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.