The secondary color for brush styles of bsHorizontal, bsVertical, bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross or gradients
BackTransparency
property BackTransparency: integer;
Level of transparency of the secondary color for brush styles of bsHorizontal, bsVertical, bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross or gradients (from 0 - fully transparent to 255 - fully opaque)
// Draw an envelope with 50% transparency with ImageEnView1.IEBitmap.IECanvas do begin Pen.Mode := pmCopy; Pen.Style := psSolid; Pen.Color := clBlack; Pen.Transparency := 128;
// Draw a semi-transparent text box onto a bitmap const Horz_Margin = 8; Vert_Margin = 3; Center_Text = False; var x, y: integer; tw, rw, rh: integer; iec: TIECanvas; ss: string; begin ss := 'This is my text'; x := 100; y := 100;
iec.Pen.Color := clBlack; iec.Pen.Style := psSolid; iec.Rectangle( x, y, x + rw, y + rh );
iec.Brush.Style := bsClear; iec.TextOut(x + ( rw - tw ) div 2, y + Vert_Margin, ss); iec.Free; end;
// Highlight an area of a bitmap iec := TIECanvas.Create( Bitmap.Canvas, false ); iec.Brush.Color := clRed; iec.Brush.Style := bsSolid; iec.Brush.Transparency := 125; iec.FillRect( Rect( 650, 680, 850, 780 )); iec.Free();
// Draw a filled 5-pointed star var pp: array[0..10] of TPoint; begin ImageEnView1.IEBitmap.IECanvas.Pen.Color := clOrangeRed; ImageEnView1.IEBitmap.IECanvas.Pen.Width := 3; ImageEnView1.IEBitmap.IECanvas.Brush.Color := clYellow;