ImageTraverser

A pointer-based class / tool for retrieving and settings individual image pixels
Download

ImageTraverser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Jacob Klint
  • Publisher web site:
  • http://www.merage.uci.edu/~dvdotnet/scriptwriter.txt
  • Operating Systems:
  • Windows All
  • File Size:
  • 72 KB

ImageTraverser Tags


ImageTraverser Description

The ImageTraverser application was developed to be a small tool that uses a pointer-based class for retrieving and settings individual image pixels.Microsoft's System.Drawing.Bitmap class is deceptively simple - just create a Bitmap from a file, then use the GetPixel() and SetPixel() methods to manipulate the image, right? Unfortunately, these two methods are terribly slow, so a lower-level traversal via pointers is necessary for decent performance (a 10x - 75x improvement in my tests!). However, there is a reason that the .NET language designers are steadily moving away from pointers - code that utilizes them is usually brittle and error-prone, even when run under the CLR. Therefore, to minimize and isolate the use of unsafe code in my projects, I have encapsulated the necessary unsafe pointer code in this class, plus I have added several handy methods for dealing with image pixels. The end result is a robust class for traversing images (ie, retrieving and setting individual pixels) - hence the moniker ImageTraverser.


ImageTraverser Related Software