Home > Back-end >  Delphi - how in a newly built a transparent layer above picture?
Delphi - how in a newly built a transparent layer above picture?

Time:09-26

I want to achieve a similar PS layer (must be transparent), and then draw lines on it, delete the line, select the straight line, drawing a straight line, before I used an image control to cover in the picture above, then set into a transparent, but it is displayed as white!!!!!!

CodePudding user response:

Single graph similar things

CodePudding user response:

Upstairs has said for a control, but I'm here to give you say a train of thought, thought is to manage your canvas, canvas of things into abstract objects, and then save the object position, size, the image information of object, etc., and then you can edit drag for different object, drawing, data information from your list, one by one, and then there are the layer concept,

CodePudding user response:

The building Lord, can divide several operating points:

1, about the level, can pass a TImage, instead of a layer;

2, three colors to display color, monochromatic value is 0-255 pixels, 0 means color saturation and minimum 255 largest said color saturation,

3, difficult is transparent, said by an Image pixel matrix array, one to record the Image point (pixel) is transparent, coupled with Image pixels, so you can get a transparent layer,

Related code, write their own,

  • Related