[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123[4]5678910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 18:05:45 02/07/03 Fri
Author: Michel
Subject: Re: How to display a raw gray scale image?
In reply to: Olaf Meding 's message, "How to display a raw gray scale image?" on 18:10:36 02/05/03 Wed

Hi Olaf,

Here are some guidelines to get started on this. Also, note that I would recommend using version 2.

First create a TDibGraphic instance and call NewImage to create the gray scale graphic. Then you can assignt the pixels using the Rgb or PaletteIndex property from your raw gray scale data.

Then using a TImageScrollBox which will provide the scroll bars, assign the graphic. The code will be something like this:

Graphic = new TDibGraphic();
// assign the pixels
ImageScrollBox->Graphic = Graphic;
delete Graphic;

Best regards,


>How do I display a gray scale image? I have a file
>with raw data, each 2 bytes respresents 1 pixel (64K
>gray levels). I know the number of rows and columns.
>I installed the Envision Image Library - Version
>1.10A. It contains a control called TImageScrollBox.
>I would like to be able to somehow copy the raw data
>into this control so I can display and scroll the
>image in both directions.
>Any help on how to get started is greatly appreciated.

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.