Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TImage Question

Status
Not open for further replies.

Leroy1981

Programmer
Joined
Jul 22, 2002
Messages
46
Location
US
Does anyone know if it's possible to manually specify the
pixels in a TImage instead of loading from file.

Like a function something like

SetPixel(int x,int y,TColor Color);
 
The pixels can be accessed via the canvas property:
Code:
  Image->Canvas->Pixels[x][y] = Color; // set
  Color = Image->Canvas->Pixels[x][y]; // get

Good Luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top