Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Er!k \\/!$$Er" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Draw half-opaque polygon w/o additional products? (API only) Date: Sun, 14 Apr 2013 19:01:52 +0200 Lines: 50 Message-ID: References: <7356782c-2d78-4a7d-a005-38539a5304ba@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: individual.net 5ANc39jv1woJ37K1yl/HbAsp7mj2qACQ33/YViP/UL5HL66pVV Cancel-Lock: sha1:6SVdr8nll/Wr/3sx4srMiYKe77w= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 Xref: csiph.com comp.lang.clipper.visual-objects:5052 Perhaps this comes closer: http://www.progtown.com/topic843513-drawing-of-translucent-polygons-win32-api.html Erik "Stefan Ungemach" schreef in bericht news:b25b94d6-c1a5-48fc-ace0-4e4d6cee1db0@googlegroups.com... Am Freitag, 12. April 2013 18:12:16 UTC+2 schrieb Stefan Ungemach: > Hi, > > > > does anybody have an idea how to draw a semi-transparent polygon in a DC? > I am drawing all kinds of basic forms using TextObject, RectangleObject > etc. and even did write an own PolygonObject class inheriting from > DrawObject - but I need to draw these forms half opaque. Actually I can > only draw them transparent or solid. Can somebody help me? > > > > And please - do NOT post another hint like using Graphics4VO or something > similar. I KNOW the product and even own it, but I cannot use it since it > relies on subclassed windows who have some other characteristics I cannot > use (i.e. I have to lay some bitmaps on them as a background, and doing so > many times causes memory leaks). I had my reasons to use DrawObjects in my > code, it is NO option to change it bottom up, basic disussions like they > are often initiated by Geoff & Co. do NOT help me - so please just accept > it and help me using the API. > > > > > > TIA > > Stefan Thanks Erik, I've tested your examples. Unfortunately they don't help me with my problem. I don't want some simple inversiopn of underlying pixels but more some kind of alpha-blending - like as if someone lays a colored foil over an image. Could that be achieved with your code, too (the onyl point could be the Init method of the polygon class, but I'm afraid that the constants there won't suit my needs)? Kind regards Stefan