Solved

In MCGA, Tell color of pixel in coordinate

Posted on 1998-09-24
2
213 Views
Last Modified: 2010-04-16
I'm unfamiliar in how I could tell the color of a pixel for a specified coordinate.  I am familiar in how i could do this if i was in text mode:

If Chr(mem[$b800:position]) = 'x' then

Where 'position' is the value for the coordinate, and x is the character that i'll do something with if it's there.  This works for text mode, but how would I do a similar approach in MCGA?  Would the $b800 thingy be different?  I know the Chr thing wouldn't work, obviously.  And I assume instead of having the 'x' you would have a color between 256.  But I don't really know, that's why i'm asking  (:

Thanks

PS:  I hope i explained what I would like to know how to do good, if not please just leave me a comment asking for some more clarification...
0
Comment
Question by:hansell
2 Comments
 
LVL 5

Accepted Solution

by:
scrapdog earned 70 total points
ID: 1215683
In MCGA, you would use $a000

Try this:

Color := mem[$a000:position];

(where position is 320*y coordinate+x coordinate,
 and Color is between 0 and 255)


scrappy
0
 

Author Comment

by:hansell
ID: 1215684
Scrappy:

Thanks, I thought for sure I was doomed (:  This helped out a lot.  

Thanks again
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to Use TTouchKeyboard inherit 1 1,480
DevExpress TcxDBLookupComboBox accent insensitive 2 978
Delphi Skype API 2 1,799
delphi custom sort exception 6 161
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question