Solved

I have problem about graphics in C++builder

Posted on 1999-01-21
2
163 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 200 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now