Re: key to speed - use byte array instead of writing to locked image bytes

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Bob, your site is so helpful, thanks for taking the time to organize and share all that stuff :)

"Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxx>
|>The VB language doesn't support the use of _unsafe pointers_ so the
|>fastest method of access is not available to VB programmers.
|>
|>When using the Marshal class you don't use pointers, just indexes from a
|>given starting point.
|>
|>If you check out the article on LockBits you'll find a fairly
|>comprehensive description of the various memory buffer layouts for each
|>of the major graphic formats. Whatever method of access you use the
|>physical layouts remain the same.
|>
|>The apparent size of an image on disc may not have any correlation to
|>it's memory footprint. Images are decompressed to a rastar that holds
|>the whole image and so they will take up X*Y*bit-depth/8 bytes
|>regardless of the size on disc. A jpeg of a few hundred K may end up at
|>3-4-7 hundred megabytes after loading.
|>
|>A 750 meg TIFF might be ok as long as it was a simple format but TIFF is
|>such a huge spec that the GDI+ readers can't handle every different
|>form. It would also depend on things like total available memory and
|>swap-file size.
|>
|>There are no set rules i'm afraid.
.



Relevant Pages

  • Re: (2nd) HDD Format & Setup Suggestions Please
    ... > a good array of disc drives, there is seldom much benefit in playing around ... > when page faults are high and you will see little correlation between the ... > memory does not exist vs. those that mean the referenced memory is ... > not in RAM but it is in the Page File. ...
    (microsoft.public.windowsxp.hardware)
  • Re: (2nd) HDD Format & Setup Suggestions Please
    ... >> a good array of disc drives, there is seldom much benefit in playing ... >> when page faults are high and you will see little correlation between the ... >> memory does not exist vs. those that mean the referenced memory is ... >> not in RAM but it is in the Page File. ...
    (microsoft.public.windowsxp.hardware)
  • Re: CD Burner Program
    ... the camera into an empty folder onto the PC hard drive, ... > Total physical memory: 654 MB ... > Total free physical memory: ... > Disc Format: CD-ROM ...
    (microsoft.public.windowsxp.general)
  • Re: CD Burner Program
    ... In a nutshell my take is that its a slow-ass burner. ... > Total physical memory: 654 MB ... > Total free physical memory: ... > Disc Format: CD-ROM ...
    (microsoft.public.windowsxp.general)
  • Re: Scanned image format
    ... As I'm only scanning text I have saved as a tiff ... >Don't keep adjusting and saving your JPG (once or twice ... >| I thought acrobat was the standard for viewing scanned ... >|>| another way I can reduce the memory? ...
    (microsoft.public.frontpage.client)