Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

I have problem about graphics in C++builder

Posted on 1999-01-21
2
Medium Priority
?
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

705 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