How can I apply an image filter to an entire Applet?

Hey there,
I was wondering, is it possible to apply an image filter of sorts to an entire applet rather than to images? I'm writing a little game in java for a university project and basically I'm only using functions like drawrect and drawpolygon etc, and I want to apply fairly simple filters like blur etc. Is there any way I can achieve this kind of effect with the draw functions?
Thanks
-Spec

You might do better in the 2-D or Swing forums.
I don't have an answer, but it's an intriging problem. Basically you need to get all the components to paint themselves into the graphics context of an offscreen buffer, then apply the transformation, then paint the buffer onto the screen.
(Some hackery must be involved though. For instance blurring, by definition, means that components will have an onscreen appearance outside their bounds. So you are sort of fighting against Swing's painting mechanism - if a portion of your applet, close to but outside the bounds of a particular component, becomes visible that component will have to redraw itself, although Swing won't know that.)
2-d - http://forum.java.sun.com/forum.jspa?forumID=20
swing - http://forum.java.sun.com/forum.jspa?forumID=57

Similar Messages

  • How can I apply an image adjustment to all files in a folder?

    How do I apply an edit to every file in a folder?  Every time I need to do this, I end up flailing around for 10 minutes before I can finally get it to work.  Or, sometimes I give up and manually paste the copied settings to each file one at a time.  It seems a no-brainer that "copy settings" followed by "paste settings" to all files selected would do the trick.  Or "copy settings" foillowed by "Sync settings."  But it doesn't work.  What am I missing?

    pickfordpictures wrote:
    Thanks, Rob.
    You bet .
    pickfordpictures wrote:
    Do you know a way I might have backed out of that crop adjustment and gone back to the original crops?
    Here are the (potential) ways I can think of at the moment:
    * Undo (if you haven't gone too far since, or exited)
    * edit history (1-by-1)
    * read metadata (if previously saved prior to snafu/oops).
    * restore backup catalog (if no saved metadata).
    * ScrewAutoSync (if fixed number of steps to rollback for all afflicted photos).
    Rob

  • How can I apply an image to a 2 piece 3D dome

    Hi all, I'm very new to Photoshop CS5 so I am very gratefull for any help. I have a specific requirement which is to apply an image, pattern or text to a 3d dome. The dome is will be in two halfs and layed flat in 2d then printed off with the design so that when the two halves are joined together the image or pattern matches across the seam. Is this even possible? Any help gratefully recieved.
    Thanks

    Hi Myenium,
    Thanks for your response which was very helpfull. I've added a bit more detail below in case it may alter your view on how this might be done. I shall look into those techneques you mention.
    I had originally thought that 3D modelling with Photoshop was the answer as I could create the dome shape (imagine a beanie), unwrap it, using the 3d program, apply a texture in Photoshop bring it back into the 3d program to allow me to check it out in 3D then be able to print off two, 2d patterns onto fabric and then physically stich them together. The finished item would look like the 3d model and the image or design would match perfectly across the seam.
    Again many thanks for your advice.
    Duckduck

  • How can I apply an image to a button in a toolbar (Bookmarks toolbar)

    Added bookmark as button to bookmarks toolbar, but it doesn't have an image associated with it. Is there a way I can add/copy an image there?

    You can do that with the [https://addons.mozilla.org/en-US/firefox/addon/7849/ Favicon Picker 3] add-on.

  • How can I apply the same filter to multiple inboxes?

    I am looking at transitioning from Outlook to Thunderbird -- mostly for the Google calendar integration.
    The one thing I am having problems with is the filters. I have multiple email addresses and I would like to be able to apply one filter to all of the email addresses. Ie: I get an email from Bob sent to me on my email address 1 and the email goes to bob's folder. Then I get an email from Bob on my email address 2.
    I would like to have the same rule to be effective for both of my email addresses so if bob uses either email address, the mail goes to bob's folder.
    Right now it appears that I have to create a unique filter if I get email from 'bob' on email address 1 vs email address 2. Am I missing something?

    Nope. Thunderbird's filters are specific to accounts.
    You could set them up in one account, then copy that account's ''msgFilterRules.dat'' file to your other accounts.

  • How do I apply the blur filter to all my layers at the same time?

    Hi I'm working on a background for a web page and I want to try how different filters are going to affect all the layers. Is it possible to apply a filter to all the layers without flattening the file first? Thanks very much,
    Cathy

    Thanks very much , that's really helpful,Cathy
    Date: Thu, 23 Dec 2010 11:18:21 -0700
    From: [email protected]
    To: [email protected]
    Subject: How do I apply the blur filter to all my layers at the same time?
    Hello!
    There is no need to flatten the file, but you can create a layer that merges all the content of the image, and apply the filter on that layer.
    Target the topmost layer, by holding the Option and . (period) keys, then create a merged copy by holding down Command Shift Option E.
    >

  • Photos in album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Photos in iPhoto album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • How can i apply border for fluid grid layout div

    How can i apply border for fluid grid layout div

    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Untitled Document</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="CSS/Layout.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="flexslider.css" type="text/css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script src="jquery.flexslider.js"></script>
    <!-- Place in the <head>, after the three links -->
    <script type="text/javascript" charset="utf-8">
      $(window).load(function() {
        $('.flexslider').flexslider();
    </script>
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="respond.min.js"></script>
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="LayoutDiv1"><img src="SJV-Images/Banners/Dark-green-curved-header.png"/></div>
      <div id="LayoutDiv2">
      <div class="flex-container">
      <div class="flexslider">
        <ul class="slides">
          <li>
            <img src="SJV-Images/Stud1.jpg"/>
          </li>
          <li>
            <img src="SJV-Images/Stud2.jpg" />
          </li>
          <li>
            <img src="SJV-Images/Stud3.jpg" />
          </li>
        </ul>
      </div>
    </div> </div>
      <div id="Nav">This is the content for Layout Div Tag "Nav"</div>
      <div id="Special_Features"><h3 align="center">SPECIAL FEATURES</h3>
      <ul>
      <li>
      It is one of the oldest school.</li>
      <li>It was first started as an orphanage for the children of British soldiers, and later moved to its current location.</li>
       <li>Rich in Anglo-Indian tradition dating back to three centuries.</li>
      <li>The campus now has separate buildings within the campus for year 1 to  year 8 (Junior and Sub Junior block) and year 9 to year 12 (Senior and   Super Senior block).</li>
      <li>The school has montessori facilities in a separate building.</li>
      <li>The School also has boarding facilities for students from distant places.</li>
      </ul></div>
      <div id="History"><img src="SJV-Images/His_Image.png" alt="Hisimage" class="floatleft">
      <h3>HISTORY OF OUR SCHOOL</h3><P>In 1750 – a very long time ago,a missionary and a teacher, Christian Frederick Schwartz came to India to work in the Danish Mission at Tranquebar.Due to his own personal charm, genius and integrity, soon he became a trusted envoy to the court of Princes ,both hostile and friendly. He even helped in the training and education of Serfogee Rajah, the adopted son of the Tanjore Raja Tuljagee.</P></div>
    <div id="Photo_Gall"><center>
        <strong>PHOTO GALLERY</strong>
    </center>
      <p><img src="SJV-Images/Photogall.png" width="174" height="70" class="floatright"/></p>
    </div>
      <div id="News_Events"><center>
        <strong>NEWS & EVENTS</strong>
      </center><center>Annual Day<br><center>
        Alumni Meet<br>
        Exam Time Table<br>Parents-Teacher's Meet</center>
      </center>
      <br></div>
      <div id="footer">This is the content for Layout Div Tag "footer"</div>
    </div>
    </body>
    </html>

  • How can i apply adobe bridge in my ipad 2?

    how can i apply adobe bridge in my ipad 2?

    As when installing an app on a computer, there must be a version for the app that is compatible with the computer and the OS running the computer.
    Is there an Adobe Bridge app for the iPad available via the iTunes app store?

  • How can you use one image and edit it three different ways to export later?

    I am a new Lightroom 3 user.  How can use the same image and edit it multiple ways to produce mulitple images to later export?  For example,  I have a picture of a bride and groom.  I want to use that image and create a color image, a black and white image, and a close up of their hands.

    Do I need to do either of those options before I start editing the image at all?  For example,  what if I am working on the image and doing some creative edits.  Then I think of another option that I could do.  Is it too late at that time or can I still get the original image to begin with?

  • How can i control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?

    Sup buddies,
    How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
    As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
    needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
    all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
    TY...Over N Out... 

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • How can I save the images to the iPhone anywhere

    Hello  I own Time capsule 3 tb. How can I save the images to the iPhone anywhere in Time capsule
    note i used fileexplorer when Outside the home isee Outside Message " error connection failed with the error operation time out "
    Thanks

    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
    If you want to back up the Photos only:
    Export them using the File -> Export command.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • How can I attach an image without the image is in the email body? (using the new mail the Lion)

    How can I attach an image without the image is in the email body? (using the new mail the Lion)
    I want in attachment, not in the body mail.

    I think your only solution is to zip the image files first and then attach them.
    Read this from a site I found:
    Sending Graphical Attachments -- When you attach a graphical image to your message, the recipient of your message sees the image inline (that is, in the body of the message) if her email client supports inline display. ("Take Control of Email with Apple Mail" contains a table listing the capabilities of popular Mac and PC email clients.) If a client does not support inline display (or the recipient has turned off the inline display option), the file appears as an attachment that must be opened in a separate program.
    On the one hand, an inline image is easier for the recipient to see - all she has to do is look at it. On the other hand, inline images can be frustrating to scroll through. If you do not wish to send a graphical image inline, you must compress the file before attaching it - Mail, sadly, lacks a built-in compression option, though fortunately for Panther users, the Finder offers Zip compression without requiring a separate application.
    Note that when you compose a new message, Mail always shows attachments in the body of your message. You can manually drag them somewhere else, but many email clients display all attachments in a separate list, regardless of where you place them in the message body.
    If you paste an image into a message or drag & drop an image from another window (say, a Web browser), Mail converts the raw image data to an attachment in TIFF format. On the other hand, if you drag & drop the icon of an image file (or use the Attach button to locate the file using the file browser), Mail leaves the attached image in its original format. This difference is significant, because although most email clients can display JPEG images just fine, support for TIFF - especially in non-Mac email clients - is less common. If possible, I suggest attaching image files as opposed to pasting or dragging in raw image data.

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

Maybe you are looking for

  • Error message when upgrading to Tiger

    Hello, I have an iMac G5 running 10.3.9 and I'm finally getting around to upgrading it to tiger. I've installed everything in software update, so I should be completely up to date, and I have all the RAM and hard drive space the apple support page sa

  • IPOD MINI&UPDATER PROBLEM!! THIS IS NOT NORMAL!!

    Hello guys I just downloaded the newest iPod updater 2006-01-10 for my brother's iPod mini. There was an update necessary. So then I install it, plug the iPod into my computer, and it determines that update is necessary. So I then update it. Normal r

  • The 'Edit folder' link doesn't appear in content area portlet (URGENT)

    Hi! I made three content areas, and published them as portlets in a page. However, when I enter the page as an authorized user, I don't see the 'Edit folder' link on any content area portlet. But if I enter to any of the content area pages with the s

  • Here's a different one for you...

    I have an original iphone which i have had very little, if any problems. I updated to the 2.0.2 software that came out recently and everything was once again going fine. Here's where it gets interesting. Two days ago, the bottom row of icons (phone,

  • Movie rentals on iPad (using iTunes)

    This may sound silly, but... When I rent a movie on my iPad and it expires after 24 hours, does the storage memory free up? Thanks! Kiefer, CA