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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting pixels

Status
Not open for further replies.

julianluthor

Programmer
Nov 3, 2003
18
MY
hi,everyone....
i want to delete the pixels if the Pixels[col][row]=0.Below is my code.What's wrong with my code?
thanks..

if ((Byte)Image1->Canvas->Pixels[col][row] == 0)
delete[];

 
You can not del pixels. You can only set and get them.

Ion Filipski
1c.bmp
 
If you delete the pixel, what's going to replace it? I mean why do you need to delete a pixel? Perhaps you could just turn it all black or all white instead?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top