Draw a transparent rectangle

Example requests & Code samples for GdPicture Toolkits.
Post Reply
sunseeker
Posts: 40
Joined: Mon Sep 08, 2008 2:28 pm

Draw a transparent rectangle

Post by sunseeker » Wed Mar 25, 2009 11:45 am

Hi Loic

in my previous Version (with LeadTools), i had a function to draw a yellow transparent rectangle. Is it also possible with vour Control?

Image

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Draw a transparent rectangle

Post by Loïc » Fri Mar 27, 2009 12:10 pm

Hi,

Yes you can easily. Just create an ARGB color using an alpha component between 0 and 255 (0: full transparency - 255: full opacity).

IE:

Code: Select all

Call Imaging1.DrawFillRectangle(0, 0, 100, 100, Imaging1.argb(100, 255, 255, 0))
Cheers,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests