Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now




Working With Histograms

Issue: 6.5 (July/August 2008)
Author: JC Cruz
Article Description: No description available.
Article Length (in bytes): 25,038
Starting Page Number: 21
RBD Number: 6510
Resource File(s):

Download Icon 6510.zip Updated: Tuesday, July 1, 2008 at 11:42 AM

Related Web Link(s):


Known Limitations: None

Excerpt of article text...

In today's REALGraphics article, we will learn the basics behind an image histogram. First, we study the concept of a histogram and how it relates to image data. We then explore two ways of modifying the histogram data. Next, we build a set of REALbasic classes that will build and manage an image's histogram data. And then we will use these classes to analyze a handful of test images.

The Image Histogram

We all know that all digital images are comprised of a series of dots called pixels (short for "picture elements"). We also know that pixel depth determines the number of colors it can display. For instance, pixels in a black and white have a depth that is exactly 1 bit, where 1 is white, and 0 is black. The pixels in a CGA image, which has only 4 colors, will have a depth of 2 bits. Most modern images, such as those handled by REALbasic, use pixels that are 24-bits in depth. As a result, these pixels can display up to 16777216 colors, sufficient for most photo-quality work.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.




Weblog Commenting and Trackback by HaloScan.com