Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

I have problem about graphics in C++builder

Posted on 1999-01-21
2
Medium Priority
?
169 Views
Last Modified: 2011-10-03
I want to know that I must be use command?. In access direct with pixel.
 I ever write Borland 3.1(DOS version). It have include file graphics.h just in this file have command
 getpixel or putpixel for access direct with pixel. Then in C++builder I can to use command?.
 instead of getpixel and putpixel.  
                 Please answer me because I will be graduate or not depend on your answer.
                         I'm senior engineering. I'm making my project.
                                   THANK YOU VERY MUCH    
0
Comment
Question by:thawatchai
  • 2
2 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 400 total points
ID: 1184820
Here is how it's done.... This is a simple example....

//Let's say this code goes under the Click of a button.....

for (int y = 0; y < Height; y++)
  for (int x = 0; x < Width; x++)
    Canvas->Pixels[y][x] = (TColor)RGB(x * y, y + x, x * y);

This is just a simple example that shows you how to access the pixels on the Form's canvas.....

-Viktor
--Ivanov
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1184821
If you need more help, let me know......
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

971 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