Do it in the Buffer: Comparison of RasterImage Image Data Access Methods in .NET

Posted on 2020-08-25 13:40:11 by Gabriel Smith

There are several ways to access the data in a RasterImage. If you need to get the RGB values of each pixel, then the GetPixel() and GetRow() methods are the simplest methods to use.

Few Pixels

If you need to get just one pixel, then GetPixel() is the easiest. GetPixel() works with image data of any bits per pixel and returns a RasterColor that includes the alpha channel information for 32 and 64 bit images. The sample below uses GetPixel()to fill the buffer with the entire image (not recommended—more on that below).

Continue Reading...

Tutorial: Extract Image Info with the CodecsImageInfo Class

Posted on 2020-04-28 by Gabriel Smith

Like people, images are all different. Even though some images may look the same, there can be hidden information within the properties that make them unique. Perhaps you find yourself currently in a workspace that is going paperless and need a way to convert image files to the same format, size, or bits-per-pixel. You'll first need to be able to quickly check the various image properties to see which ones already match your needs and which ones don't.

LEADTOOLS offers developers an easy way to extract this image information with the CodecsImageInfo Class. This class provides methods to get information about images. There are hundreds of different image properties that can obtained with this class.

Continue Reading...

Connect the Digital Dots: Text Detection on LCD Displays Using LEADTOOLS Image Processing SDK

Posted on 2020-01-29 10:18:40 by Nick Villalobos

Digital number recognition from LCD displays can be a challenge when it comes to recognizing seven-segment or dot-matrix displays. This is because the lines in the numbers do not actually connect when forming the number. When performing OCR on images that contain these fonts, you will need to do some image processing to increase the accuracy. This can easily be done with two functions from the LEADTOOLS Image Processing SDK that is included with LEADTOOLS Recognition and Document Imaging products.

Continue Reading...

Convert an Image to Black & White PDF

Posted on 2019-12-19 12:34:02 by Nick Villalobos

PDF Header

After reviewing the forums and responses to some surveys we recently send out, I noticed that many developers are looking for the best way to convert an image to a black & white PDF file. LEADTOOLS offers at least two solutions:

Continue Reading...

Do it in the Buffer: Introduction to Dithering

Posted on 2019-12-19 12:27:07 by Nick Villalobos

I recently became intrigued by some art work I saw online. It is a bunch of Rubik's cubes set up to reproduce a picture.

The artists are essentially reducing the image's colors down to a palette of six colors with dithering. By dithering the picture, it appears to look like the subject from a distance because the colors mix and merge to resemble the original colors. But the closer you get to the piece, the more it appears to be a bunch of randomly ordered colored squares. It sparked the artist in me, so I decided to use LEADTOOLS to help me come up with my own Rubik's Cubism-like art.

Continue Reading...
LEADTOOLS Blog

LEADTOOLS Powered by Apryse,the Market Leading PDF SDK,All Rights Reserved