Simulating transparency in SWT with screenshots

I am trying to take a screenshot of whatevers behind a shell for the purposes of simulating transparency... I have the following code:
shell.setVisible(false);
shell.update();
background = new Image(display, bounds.width, bounds.height);
gc = new GC(display);
gc.copyArea(background, x, y);
gc.dispose();
shell.setVisible(true);This sorta works. It takes a screenshot and the screenshot has the general outline of what's behind it, but it doesn't work for capturing the desktop or the details of a window. For example, it will capture the outline of a window and the background color of a menubar, but it will not capture the word "File" which is on that menu. To clarify, it captures the window itself (the window behind it, that is) but not any of the details of the window.
My first thought was that i wasn't leaving time for the window manager to draw the contents of the windows, but sleeping the thread in the middle didn't change anything.
I'm hoping someone can shed some light on this for me.
Oh, and perhaps it might matter: I'm using SWT 3.2, java 1.5, Linux with XFCE and a the proprietary ati graphics driver... not using xcompmgr.
Thanks for any help,
Qest

I believe you are wrong on that one. To my knowledge, SWT does not support any sort of transparency for shells. You can, however, use non-rectanglear window shapes to simulate transparency, but I am already doing this in addition to what I posted in my original post and it doesn't satisfy my requirement completely.

Similar Messages

  • Need SAP  CRM 4.0 installation guide with screenshots.

    Hi any body please send me the SAP  CRM 4.0 installation guide with screenshots.my mail id Thanks in advance.
    Message was edited by:
            Yaroslav Zorenko
    mail deleted

    Why do you need screenshots? Check the official documentation at
    http://service.sap.com/instguides and read the notes.
    What is unclear to you?
    Markus

  • I want to deployment WSUS for our company. So I need step by step guide line with screenshot and video link

    I want to deployment WSUS for our company. So I need step by step guide line with screenshot and video link.
    Thanks,
    Qamrul

    I was more interested in writing a script in PowerShell to automatically deny Itanium server updates.
    Would you happen to know a good article on this?
    I believe this topic has been discussed in this forum, so I'd start by searching the forum.
    Beyond that, your best friend in PowerShell script efforts is going to be CodePlex. There may be one posted there, already written.
    As a technical reference, you'll need to be familiar with the WSUS API, and the
    Software Development Kit is available on MSDN.
    You can definitely do this with PowerShell. (I actually do it with a feature of SolarWinds Patch Manager which does it via an API call.)
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • I need ECC 6.0 installation steps with screenshots

    please send me the ECC 6.0 installation guide.I need ECC 6.0 installation steps with screenshots. my mail id is <removed by moderator>.thanks in advance.

    need SAP  CRM 4.0 installation guide with screenshots.
    Markus

  • Help Menu Search Bar Transparency Not Opaque With Increase Contrast Option

    Hi,
    I am running OS X 10.10 and I've turned on the Reduce Transparency and the Increase Contrast options.
    I've noticed, however, that with the Increase Contrast On the background of the search bar in the Help menu is transparent again and with black text (making it even harder to read then normal). If I have only the Reduce Transparency on then it is opaque as expected. It's with both Reduce Transparency and Increase Contrast on that causes this behavior.
    Is this a bug that anyone else has experienced or is it just me? Any ideas how to fix this annoyance (other than turning off Increase Contrast)?
    Thanks

    I'm having the same problem here. Not really sure why it's not working, but checking the "synchronize with google" box seems to do nothing.

  • Problem with screenshots

    Greets all.
    I've got a problem with screenshots taken using the shortcuts.
    I've got my 15" MBP hooked up to an external display - an Apple 24" Cinema Display.
    I tend to want to take screenshots using CmdShift4 then highlighting the section I want to capture. When taking screenshots this way or with any other shortcut method while using my 24" display, the result is an all black screenshot.
    You can see an example here:
    http://www.twitpic.com/16fmcu
    If I disconnect from the display, captures are just fine.
    Any hints, tips, or hacks?

    Just out of curiosity, does ShiftCommand3 work?

  • How to activate the transparent table along with append structure

    Hi,
    I add the new fields in existing append structure on tale VBAP.
    Initially i provide them the data type as Char with length 20.
    Similarly i added the fields in user exit on scree 8459 to add fields on screen.
    Until this eveything was working fine.
    Then my functional consultant ask me to delete one field from structure and change the length of other data types to 40 characters.
    I done this changes but when i go to activate that append structure its giving me error that certan structures in which it is been used are not adjusted and activated.
    The table is not adjusted through SE14 - Database Utlity.
    Its showing me that Runtime Object and Transparent table are different and not consistent.
    Can i delete the runtime object?
    The domains which i ave changed are also not geing activated.
    Suggest me the node of problem and solution also.
    What should be the problem.
    What should i do to solve the problem.
    Suggest me the solution if any.

    Give a trail that instead of activating all together, activate low-level objects (domains, data elements etc)first and then high levels (structures, tables) individually. With this approach you could find the errors easily and can resolve quickly.
    Regards,
    Prasanth

  • How can I make a transparent text marking with the courser in InDesign CC?

    How can I mark a Text with the Courser and see things, that are behind it (next layer…)
    Of course, it works at Version CS5.5.
    I havn't found any preference for this problem.
    Thx 4 help

    I'll think there was a missunderstanding. So i've made screenshots of the problem.
    Here in CS5.5:
    https://www.dropbox.com/s/bxwuqjh9n8a2nr7/Screenshot%202013-11-20%2009.09.54.png
    Here the same in CC:
    https://www.dropbox.com/s/8x9kfsmf1vlf7k3/Screenshot%202013-11-20%2009.09.38.png
    Sometimes I have to reconstruct old documents and have to make small modifications.

  • Show your .ncmpcpp/config with Screenshot

    Hi there x)
    I'm searching for a nice 'config' for my 'ncmpcpp'.
    So here you can see my ncmpcpp + config (default)
    Screenshot:
    http://omploader.org/vMWJhbA
    Config:
    ## this is example configuration file, copy it to ##
    ## ~/.ncmpcpp/config and set up your preferences ##
    ##### connection settings #####
    ## set it in order to make tag editor and renaming files work properly
    mpd_host = "localhost"
    mpd_port = "6600"
    mpd_music_dir = "/home/sash/music"
    #mpd_connection_timeout = "5"
    #mpd_crossfade_time = "5"
    ##### delays #####
    ## delay after playlist highlighting will be disabled (0 = don't disable)
    #playlist_disable_highlight_delay = "5"
    ## defines how long various messages are supposed to be visible
    #message_delay_time = "4"
    ##### song format #####
    ## for song format you can use:
    ## %l - length
    ## %f - short filename
    ## %F - full filename
    ## %a - artist
    ## %t - title
    ## %b - album
    ## %y - year
    ## %n - track number
    ## %g - genre
    ## %c - composer
    ## %p - performer
    ## %d - disc
    ## %C - comment
    ## %r - begin right align
    ## you can also put them in { } and then it will be displayed
    ## only if all requested values are available and/or define alternate
    ## value with { }|{ } eg. {%a - %t}|{%f}
    ## text can also have different color than the main window has,
    ## eg. if you want length to be green, write $3%l$9
    ## available values:
    ## - 0 - default window color
    ## - 1 - black
    ## - 2 - red
    ## - 3 - green
    ## - 4 - yellow
    ## - 5 - blue
    ## - 6 - magenta
    ## - 7 - cyan
    ## - 8 - white
    ## - 9 - end of current color
    ## Note: colors can be nested.
    song_list_format = "{%a - }{%t}|{$8%f$9}%r{$3(%l)$9}"
    #song_library_format = "{%n - }{%t}|{%f}"
    #media_library_album_format = "{(%y) }%b"
    #tag_editor_album_format = "{(%y) }%b"
    #browser_playlist_prefix = "$2playlist$9 "
    #selected_item_prefix = "$6"
    #selected_item_suffix = "$9"
    ## colors are not supported for below veriables
    song_status_format = "{(%l) }{%a - }{%t}|{%f}"
    #song_window_title_format = "{%a - }{%t}|{%f}"
    ##### columns settings #####
    ## syntax of song columns list format is "column column etc."
    ## - syntax for each column is:
    ## (width of column in %)[column's color]{displayed tag}
    ## - color is optional (if you want the default one, type [])
    #song_columns_list_format = "(7)[green]{l} (28)[cyan]{a} (28)[]{b} (50)[red]{t}"
    ##### various settings #####
    #playlist_display_mode = "classic" (classic/columns)
    #incremental_seeking = "yes"
    #seek_time = "1"
    #autocenter_mode = "no"
    #repeat_one_mode = "no"
    #default_place_to_search_in = "database" (database/playlist)
    #media_library_left_column = "a" (possible values: a,y,g,c,p, legend above)
    #default_find_mode = "wrapped" (wrapped/normal)
    #default_space_mode = "add" (add/select)
    #default_tag_editor_left_col = "albums" (albums/dirs)
    #default_tag_editor_pattern = "%n - %t"
    #header_visibility = "yes"
    #statusbar_visibility = "yes"
    fancy_scrolling = "yes"
    #follow_now_playing_lyrics = "no"
    #ncmpc_like_songs_adding = "no" (enabled - add/remove, disabled - always add)
    #display_screens_numbers_on_start = "yes"
    #clock_display_seconds = "no"
    #enable_window_title = "yes"
    ##### colors definitions #####
    #colors_enabled = "yes"
    #empty_tag_color = "cyan"
    #header_window_color = "default"
    #volume_color = "default"
    #state_line_color = "default"
    #state_flags_color = "default"
    #main_window_color = "yellow"
    #color1 = "white"
    #color2 = "green"
    #main_window_highlight_color = "yellow"
    #progressbar_color = "default"
    #statusbar_color = "default"
    #active_column_color = "red"
    #window_border_color = "green"
    #active_window_border = "red"
    To copy your ~/.ncmpcpp/config into clipboard just type:
    cat ~/.ncmpcpp/config | xclip
    You can download xclip from the extra repository.
    Last edited by nu (2009-03-01 09:25:51)

    Zariel wrote:
    http://omploader.org/vMWk0Nw/
    ## this is example configuration file, copy it to ##
    ## ~/.ncmpcpp/config and set up your preferences ##
    ##### connection settings #####
    ## set it in order to make tag editor and renaming files work properly
    #mpd_host = "localhost"
    #mpd_port = "6600"
    mpd_music_dir = "/home/chris/music/"
    mpd_connection_timeout = "5"
    mpd_crossfade_time = "5"
    ##### delays #####
    ## delay after playlist highlighting will be disabled (0 = don't disable)
    playlist_disable_highlight_delay = "0"
    ## defines how long various messages are supposed to be visible
    #message_delay_time = "4"
    ##### song format #####
    ## for song format you can use:
    ## %l - length
    ## %f - short filename
    ## %F - full filename
    ## %a - artist
    ## %t - title
    ## %b - album
    ## %y - year
    ## %n - track number
    ## %g - genre
    ## %c - composer
    ## %p - performer
    ## %d - disc
    ## %C - comment
    ## %r - begin right align
    ## you can also put them in { } and then it will be displayed
    ## only if all requested values are available and/or define alternate
    ## value with { }|{ } eg. {%a - %t}|{%f}
    ## text can also have different color than the main window has,
    ## eg. if you want length to be green, write $3%l$9
    ## available values:
    ## - 0 - default window color
    ## - 1 - black
    ## - 2 - red
    ## - 4 - green
    ## - 4 - yellow
    ## - 5 - blue
    ## - 6 - magenta
    ## - 7 - cyan
    ## - 8 - white
    ## - 9 - end of current color
    ## Note: colors can be nested.
    song_list_format = "{$8(%l)$9 }{%a - }{%t}|{$8%f$9}"
    song_library_format = "{%n - }{%t}|{%f}"
    media_library_album_format = "{(%y) }%b"
    tag_editor_album_format = "{(%y) }%b"
    browser_playlist_prefix = "$7playlist$9 "
    selected_item_prefix = "$8"
    selected_item_suffix = "$9"
    ## colors are not supported for below veriables
    #song_status_format = "{(%l) }{%a - }{%t}|{%f}"
    #song_window_title_format = "{%a - }{%t}|{%f}"
    ##### columns settings #####
    ## syntax of song columns list format is "column column etc."
    ## - syntax for each column is:
    ## (width of column in %)[column's color]{displayed tag}
    ## - color is optional (if you want the default one, type [])
    song_columns_list_format = "(6)[white]{l} (15)[blue]{a} (35)[white]{b} (53)[blue]{t}"
    ##### various settings #####
    playlist_display_mode = "columns"
    browser_display_mode = "columns"
    #search_engine_display_mode = "classic" (classic/columns)
    incremental_seeking = "yes"
    #seek_time = "1"
    autocenter_mode = "yes"
    #repeat_one_mode = "no"
    #default_place_to_search_in = "database" (database/playlist)
    #media_library_left_column = "a" (possible values: a,y,g,c,p, legend above)
    #default_find_mode = "wrapped" (wrapped/normal)
    #default_space_mode = "add" (add/select)
    #default_tag_editor_left_col = "albums" (albums/dirs)
    #default_tag_editor_pattern = "%n - %t"
    header_visibility = "yes"
    statusbar_visibility = "yes"
    fancy_scrolling = "yes"
    follow_now_playing_lyrics = "yes"
    #ncmpc_like_songs_adding = "no" (enabled - add/remove, disabled - always add)
    display_screens_numbers_on_start = "yes"
    #clock_display_seconds = "no"
    ## Note: If below is enabled, ncmpcpp will ignore leading
    ## "The" word while sorting items in browser, tags in
    ## media library, etc.
    ignore_leading_the = "yes"
    #enable_window_title = "yes"
    ##### lyrics support #####
    ## supported lyrics databases:
    ## - 1 - lyricwiki.org
    ## - 2 - lyricsplugin.com
    lyrics_database = "1"
    ##### colors definitions #####
    colors_enabled = "yes"
    empty_tag_color = "white"
    header_window_color = "white"
    volume_color = "white"
    state_line_color = "blue"
    state_flags_color = "blue"
    main_window_color = "blue"
    color1 = "blue"
    color2 = "cyan"
    main_window_highlight_color = "white"
    progressbar_color = "blue"
    statusbar_color = "white"
    active_column_color = "white"
    window_border_color = "white"
    active_window_border = "magenta"
    //offtopic
    Nice music taste !

  • How to save transparent background images to have transparent background thumbnails with Photoshop 2014?

    In old versions of Photoshop there was a feature that made thumbnail images have a transparent background.  I'm a CC member using Photoshop 2014 on a MacBook Pro running OS X 10.9.4 and every thumbnail of a transparent background image I've created in Photoshop 2014 appears on my desktop with a solid white box background that has a thin black outlined box inside of it.  How do I save the transparent background images I've created in Photoshop 2014 so they will appear on my desktop as thumbnails with a transparent background?   I'd like to continue to be able to replace the default background-less folder icon that that appears on files with transparent background thumbnails to customize my files as I use to do with older versions of Photoshop.

    If your layered document has a Photoshop background layer it visibility need to be set off when saving a PNG or Gif file for Photoshop background layers do not support transparency.
    Thumbnail may be a bit more complicated than you think. I do not use Lightroom, and only occasionally use the bridge.  I believe Lightroom and Bridge  keep thumbnails they develop for image files  in their library databases and caches.  Other programs do not have acces to  these.  RAW Files and Image files have Jpeg previews stored in then.  I believe most application use these previews jpeg to create thumbnails.  Jpeg format does not support transparency.
    Icon on the desktop are not always thumbnails some are embedded icons in application modules other are icon in dll these may well have transparency. However image file on the desktop have generated thumbnails.  However you can create a shortcut for an image png file and create a icon with a transparent background for the png file and change the shortcut's icon for the png file to the transparent ico file you created for it.
    Also many Photoshop release ago an Adobe module created Thumbnails for image files in Windows File explorer and most likely system file dialog. Adobe stopped supporting that stating Microsoft changes how windows works.
    Today I use FastPictureViewer Codec Package to generate image thumbnails for image files including RAW and PSD files in File Explorer and system file dialogs.
    I don't use a Mac don't know what available for your Mac.

  • Simulation in SAP CRM WITH THE HELP OF SAP BIW

    How simulation can be executed in CRM with help of SEM / BI.

    Hello Anup,
    Could you be more specific about your question? I mean could you eloborate it ?
    Thanks
    Raja Pamireddy
    CRM marketing forum Moderator

  • Printing document.... images w/ transparent background print with visable border

    I created a document in adobe InDesign CS3. I've placed some graphic images that have transparent background onto the document. It looks fine on my PC but when I print on a laser color printer, it prints with a noticeable background on the image. Drving me crazy. Any ideas why?

    http://indesignsecrets.com/eliminating-ydb-yucky-discolored-box-syndrome.php
    Bob

  • How can I create transparent animated  text with Motion and Final Cut Pro?

    Hi all,
    I am trying to replicate an effect that a previous video editor did in a project, but I can't contact them.
    They made animated text in Live Type, and saved it as a QT movie. When this text is placed over existing video in the FCP project, the text is "transparent", basically it acts like text created in FCP (You can see the background image behind the text, like through the middle of the letter "o").
    I have made some animated text in Motion, but when I save it as a QT movie, and bring it into FCP, the whole 1280x720 screen is covered by this movie, and I have to crop it so it does not cover the background image. It is all black except for the text. And of course the text is not on a transparent layer. Any ideas how I can create this effect with animated text? I've tried messing with transparency and overlay settings, nothing seems to work.
    Running latest version of Final Cut Studio...
    Thanks
    Dave

    Just bring the Motion (.motn) project into FCP and lay it over your clip.
    The QT you're exporting has to carry the alpha channel (animation codec, million+ colors), but don't waste your time/disk space with that. Just bring the motion project into FCP.
    Patrick

  • InDesign Transparency Effects - Problems with Image Quality and File Size

    Hello,
    We are experiencing new problems exporting InDesign files to PDF.
    To summarize, though our largest workflow is to create files for offset printing, we also deliver our work to PDF for mounting on a website so our clients can download directly from the web. Our new problem is Transparency Effects, and creating a PDF that will both have a high quality (or resolution), and be a small file size.
    We are working with multiple page documents (24 to 48 pages), and would very much like to work with InDesign Transparency Effects. However, after spending much time testing a variety of PDF types, we are finding there is a radical difference between quality and file size. I was curious if anyone has had these problems, and if there is a simple answer. InDesign is an incredible program that allows us to design on the fly with Transparency Effects, but, if we are going to experience these problems, we will have to eliminate these wonderful tools.
    Can you help me or lead me to information online that will help.
    Thank you,
    Lain

    Please don't post in multiple forums. Your question has nothing to do with the PDF language and specifications, but rather PDF workflow or InDesign. I've responded to your other posting and am closing this thread.
    - Dov

  • Why can't i work with screenshot's from the iPad?

    How is it that i can't use screenshots made with my iPad?
    I can open them and modyfi them in the program but when i want to save or export them i just get the messege that they are not compatible...

    It's already when i finish a project,when i hit the back arrow in the upper left corner and it ask's me if i want to save,i do so and then the image didn't appear just a grey X instead and it tells me that this file is not a photoshop file...
    And now it's not only screenshots,it marks everything like that...

Maybe you are looking for

  • I am curious why I can't find a particular book in a series by Susan Wiggs?

    I have 7 of 8 books in the Lakeshore Chornicles series by Susan Wiggs. I am unable to locate The Summer Hideaway, which is the 8th book (and available thru Kindle, Amazon, etc), so am puzzled why not Itunes?  As I have all the other books in the seri

  • Help-how can i connect between a client and servlets on different machines

    hi all I asked this question already but: I am tring to run a client which is an HTML file that has a "submit" button, that when pressed it should connect (or something) to a servlet, which is on a different mechine. what must i write instead of: "lo

  • Ultra 10 Panic

    Hi All, I have one Ultra 10 server running Solaris 8. For last some days it has started giving panics and core dumps. I used the 'mdebug' utility to analyse the core dumps and I found following messages in the outfile. Panic String 0x2a100045488: ![A

  • Proposal run error detail

    our F110 proposal run has below error: Log for proposal run for payment on 10.07.2010, identification JC006 Due items with currency SGD, pmt method-items total is > 0 ....none of the payment methods defined can be used for these items Information re.

  • Cannot access class javax.jms.TextMessage;

    Hi, I am trying to run standard page from JDev and i am getting below error from EOImpl.java. " cannot access class javax.jms.TextMessage; file javax\jms\TextMessage.class not found " I tried to import javax/jms dir to my local machine but i could no