BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using ScanLine to get RGB Values ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
B1ackwater
Guest





PostPosted: Mon Jul 31, 2006 12:34 am    Post subject: Using ScanLine to get RGB Values ? Reply with quote



Hello,

I've been fooling around with the ScanLine function trying
to get RGB values for pixels in a bitmap. The documentation
is a bit on the thin side about the particulars however -
I know that the pByteArray format changes as the color
depth of the image changes. One source says it doesn't
return 'real' colors but instead an index to a palette or
lookup table that can be translated into solid RGB values
somehow.

The few examples on the web I've found are mostly demos on
how to just invert every value - what *I* need to do is a
kind of contrast operation ... turn all pixels darker than
a certain threshold pure black, and lighter than that
threshold all white. Just switching the bitmap to mono mode
doesn't cut it - I get greys - and there doesn't seem to be
a way of setting the black/white threshold point for 1-bit mode.

I'm bringing in 24-bit JPEGs and want to wind up with a 256 color
bitmap that's at 100% contrast. I'll need to put colors on the
mono image as markers later on.

Still using Dephi-5 (can't afford anything newer).

Anyway, if anyone knows of some good examples on the web of
people using ScanLine to get values for image-processing
type operations, please post them here. Thanks.
Back to top
Riki Wiki
Guest





PostPosted: Tue Aug 01, 2006 8:11 am    Post subject: Re: Using ScanLine to get RGB Values ? Reply with quote



Hoi

You need to repost your message on the Borland news server to make
everybody see it and possibly answer your message.

How to post to Delphi newsgroups:
<http://delphi.wikia.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.