Results 1 to 2 of 2

Thread: Opague/Transparent/translucent

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Opague/Transparent/translucent

    Hi guys,

    Some time ago I came across this site:
    http://answers.yahoo.com/question/in...7053738AAnOr2S

    and I want to ask for definitions of these 3 : OPAQUE,TRANSPARENT,TRANSLUCENT.
    and I especially ask if anyone could explain the difference between
    transparent vs translucent.
    I more less understand the idea, but would like to here a guru giving some examples from QT.

    I will really be thankful.
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Opague/Transparent/translucent

    Opaque means there is no alpha channel (or max alpha value), you can't see anything at all under the widget. Example would be QColor(0, 0, 0, 255).

    Transparent and translucent mean almost the same thing, there is an alpha channel and you can see what is behind the widget. An example would be QColor(0, 0, 0, 127). But "translucent" also implies a diffusion effect. For example, glass is transparent but frosted glass is translucent. For computer graphics you need to do more than just combine two images through an alpha channel, you also need to apply a filter of some sort (usually a gaussian blur).

  3. The following user says thank you to Brandybuck for this useful post:

    maverick_pol (22nd October 2008)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.