Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5052

Re: Draw half-opaque polygon w/o additional products? (API only)

From "Er!k \\/!$$Er" <nospam@nospam.url>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Draw half-opaque polygon w/o additional products? (API only)
Date 2013-04-14 19:01 +0200
Message-ID <at05o2FbourU1@mid.individual.net> (permalink)
References <7356782c-2d78-4a7d-a005-38539a5304ba@googlegroups.com> <b25b94d6-c1a5-48fc-ace0-4e4d6cee1db0@googlegroups.com>

Show all headers | View raw


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 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Draw half-opaque polygon w/o additional products? (API only) Stefan Ungemach <stefan.ungemach@bingo-ev.de> - 2013-04-12 09:12 -0700
  Re: Draw half-opaque polygon w/o additional products? (API only) "Er!k \\/!$$Er" <nospam@nospam.url> - 2013-04-12 19:28 +0200
    Re: Draw half-opaque polygon w/o additional products? (API only) "Willie Moore" <williem@wmconsulting.com> - 2013-04-12 13:41 -0500
      Re: Draw half-opaque polygon w/o additional products? (API only) "Er!k \\/!$$Er" <nospam@nospam.url> - 2013-04-12 23:01 +0200
        Re: Draw half-opaque polygon w/o additional products? (API only) Stefan Ungemach <stefan.ungemach@bingo-ev.de> - 2013-04-13 00:25 -0700
          Re: Draw half-opaque polygon w/o additional products? (API only) "Er!k \\/!$$Er" <nospam@nospam.url> - 2013-04-13 09:41 +0200
  Re: Draw half-opaque polygon w/o additional products? (API only) Stefan Ungemach <stefan.ungemach@bingo-ev.de> - 2013-04-12 12:35 -0700
    Re: Draw half-opaque polygon w/o additional products? (API only) "Er!k \\/!$$Er" <nospam@nospam.url> - 2013-04-12 22:56 +0200
  Re: Draw half-opaque polygon w/o additional products? (API only) Stefan Ungemach <stefan.ungemach@bingo-ev.de> - 2013-04-13 06:14 -0700
    Re: Draw half-opaque polygon w/o additional products? (API only) "Er!k \\/!$$Er" <nospam@nospam.url> - 2013-04-14 18:57 +0200
    Re: Draw half-opaque polygon w/o additional products? (API only) "Er!k \\/!$$Er" <nospam@nospam.url> - 2013-04-14 19:01 +0200
    Re: Draw half-opaque polygon w/o additional products? (API only) "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-04-15 09:19 +0200
  Re: Draw half-opaque polygon w/o additional products? (API only) Gustavo Biasone <rosario.soft@gmail.com> - 2013-04-15 10:53 -0700

csiph-web