DelphiFAQ Home Search:

Dynamically drawing a transparent bitmap

 

comments1 comments. Current rating: 4 stars (1 votes). Leave comments and/ or rate it.

1) use TBitmap do draw on the canvas, this makes it really easy

2) set it to transparent

3) define the transparent color (if you forget this, the color of the pixel in the bottom left corner will be used):

var
  myBitmap : TBitmap;
//..

begin
  // somehow create myBitmap

  myBitmap.Transparent := true;
  myBitmap.TransparentColor := clBlack;
end;

Comments:

2006-11-02, 14:18:47
anonymouz from Bulgaria  
rating

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: