Solved

I have problem about graphics in C++builder

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

760 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

21 Experts available now in Live!

Get 1:1 Help Now