Flicker while redrawing an Image (only one)

I've made an RBGFilter for Images and Combined it with a Thread
to make an Image fade from Color to Grayscale.
I use it together with an home made JComponent. It works, but the Image flickers.
I've tried longer sleep periods (I thougt that maybe the filter was to slow) but it still flickered when changing the Image. I tried dubbel buffering, but couldn't get it to change the Image. Anyway, I suppose double buffering wouldn't help much, while it's only one Image to be drawn and it covers the entire Component.
Does anyone have a clue about how to do?? You'll get plenty of Duke Dollars!
(in the fade class)
public void run()
try{
while( !Thread.interrupted() ){
Thread.sleep( 70 );
//Change colors:
Image tmpImage = Toolkit.getDefaultToolkit().createImage(
new FilteredImageSource( colorImage.getSource(), fadeFilter ) );
ImageComponent.setImage( tmpImage ); //Home made component
//test if fading is finished...
catch( InterruptedException ie ){}
(in the home made component)
public void setImage( Image theImage )
this.theImage = theImage;
repaint();
public void paintComponent( Graphics g )
g.drawImage( theImage, 0, 0, this );
}

Create an adjustment layer then clip it to the layer you want to lighten by clicking between the two layers while holding the alt/opt key.

Similar Messages

  • Need to capture multiple image paths for responsive design when only one will be displayed at a time

    I'm new to CQ and am having enough trouble following the documentation on image components as it is (why is there no master reference for all this?). I have a requirement where we need to capture three versions of an image and put the URLs into three attributes of a tag. The appropriately sized image will be selected via JavaScript based on the browser/device capabilities. I need to know how to capture those images when seemingly only one at a time can be dropped onto the page. Or perhaps there is a more CQ solution to this.

    Hi,
    You need to customize image component. I mean selected image is a asset in the repository and each asset by default has 3 rendtion generated when the image is uploaded in the dam.
    For example when you upload image.jpg file into the DAM, standard workflow is launched and after a while inside the repository (see paths) are created following renditions:
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.140.100.png
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.319.319.png
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.48.48.png
    This process can be customized by changing /etc/workflow/models/dam/update_asset.html workflow and modifing "Thumbnail creation" step by adding in the Process tab -> Arguments field new values for new rendition. So for example if you add there [400,400] new rendition will be created in the path
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.400.400.png
    Next step is to customize jsp for image component. Using path to the drag and dropped image from a component attributes you can easily take all renditions iterating on the /content/dam/project/image/yourimage.jpg/jcr:content/renditions node and then set paths to all renditions in the tag attributes. Then like you wrote using js you can select proper rendition.
    I hope that it hepls you.
    Regards,
    Adam

  • Flickering Image update (only one Image drawn on Component), 10+ Duke Dolla

    I've made an RBGFilter for Images and Combined it with a Thread
    to make an Image fade from Color to Grayscale.
    I use it together with an home made JComponent. It works, but the Image flickers.
    I've tried longer sleep periods (I thougt that maybe the filter was to slow) but it still flickered when changing the Image. I tried dubbel buffering, but couldn't get it to change the Image. Anyway, I suppose double buffering wouldn't help much, while it's only one Image to be drawn and it covers the entire Component.
    Does anyone have a clue about how to do?? You'll get plenty of Duke Dollars!
    (in the fade class)
    public void run()
    try{
    while( !Thread.interrupted() ){
    Thread.sleep( 70 );
    //Change colors:
    Image tmpImage = Toolkit.getDefaultToolkit().createImage(
    new FilteredImageSource( colorImage.getSource(), fadeFilter ) );
    ImageComponent.setImage( tmpImage ); //Home made component
    //test if fading is finished...
    catch( InterruptedException ie ){}
    (in the home made component)
    public void setImage( Image theImage )
    this.theImage = theImage;
    repaint();
    public void paintComponent( Graphics g )
    g.drawImage( theImage, 0, 0, this );
    }

    I dont know much about java but i do know a bit about MFC and this reminds me of a similiar issue in mfc. So heres my bet:
    Calls to repaint do call directly to paintComponent they first execute some code that paints the background of the component then calls the paintComponent routine. Typically the background is white and this results in flickering.
    Thats just a hunch. Because its similiar to an issue that you get in MFC around animation with framework paint calls.
    You can play the hunch by calling paintComponent directly and see if your flickering goes away. If it does find a way to use repaint without it repainting the background before it calls paintComponent (im sure theres a way or a similiar framework routine)
    One last thing? is the custom componet that your working with swing based? Cause swing based components are supposed to double buffer by default.

  • How can I correct that emails for only one of my address going direct to my trash file before even being read and this just started a while back not before?

    have been living with this for a while, do not remember when it started and have already try different ways a solving the problem but nothing has corrected the situation.

    thanks for ur suggestion, no help. still goes to trash for only one of my email addresses, other two no problem.

  • I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page word document, some recipients get only one page.  Also sometimes when I burn an image from iPhoto on to a disc, only part of the image appears.  Why?

    I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page Word document by email, some recipients get only one page.  Also when burning an image from iPhoto (usually no larger than 1mb) on to a disc, only part of it appears.  It appears to have been magnified so that only a part of the image appears.  Can anyone enlighten me as to what is happening?  And how to fix it??

    I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page Word document by email, some recipients get only one page.  Also when burning an image from iPhoto (usually no larger than 1mb) on to a disc, only part of it appears.  It appears to have been magnified so that only a part of the image appears.  Can anyone enlighten me as to what is happening?  And how to fix it??

  • While copying photos from pc to ipad only one folder gets copied, while copying photos from pc to ipad only one folder gets copied

    while copying photos from pc to ipad only one folder gets copied and while trying for other folders, the previous one which copied earlier does not appear.

    Are you selecting all of the folders to sync?
    Note that if you deselect a folder it will be removed.

  • Only one person coloured while all around is black and white

    I'm wondering if it is possible to maintain in a clip only one person coloured while other people and background go black and white... (it is a normal shot, not chroma key)

    yes you can, it is called rotoscoping, essentially you need to create a mask and animate it with key frames for the duration required. Motion or AE probably your beat bet. There are a few other options depending on your footage and how you shot it but given that you have other moving subjects inthe frame masking may be the easiest.
    Tony

  • How to flag only ONE image when several selected in 'N' mode ?

    Hi,
    I want to compare several images in a same serie. I select. I press N key, then I select in strip bottom bar the group of picture.
    I want to put a flag (or star) to only the ONE I prefer, but all pics get the flags or star...
    I need to take out the reject by clicking each X of each pic to threw them away, and finally pick only the on I want...
    How to pick or star only ONE image on N mode (ENSEMBLE Mode in french LR)
    Manys tks
    Fred

    I can't reproduce your issue on Mac or Windows. Quite often when odd ball behaviour arises it's an indication that Lr preference file has become corrupt. Have you tried trashing your Lr preference file then relaunching the application? The name and location for the preference file described here Preference and other file locations in Lightroom 5

  • Print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9

    I'm trying to print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9. HELP!!Version 7.0 (826.4)
    I'm using Preview Version 7

    Hello @kgingeri1, 
    Welcome to the HP forums.
    If you have sent a test print via ePrint, and experience this issue, i would call the Cloud Services department.
    If ePrint works fine, it is definitely a Google Cloud Print issue.
    Also, when you print from your android device, are you using Google Cloud print or the HP ePrint app?
    Please call our Cloud Services at 855-785-2777.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Hours:
    Mon-Fri. 8am - 11pm, Sat. 9am-8pm - EST
    Mon-Fri. 7am - 10pm, Sat. 8am-7pm - CST
    Mon-Fri. 6am - 9pm, Sat. 7am-6pm - MST
    Mon-Fri. 5am - 8pm, Sat. 6am-5pm - PST
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • How do i make a slideshow lightbox with only one main image

    Hi all,
    i was wondering How do i make a slideshow lightbox with only one main image being seen on the page and once clicked the lightbox will open and have multiple images viewable from prev/next buttons with comments.
    Reason being is i want have a portfolio page with my work all viewable from that one page so i will have say 10 lightboxes on the page but all with one master image.
    Cheers,
    Chris

    hello
    I have the same problem... Its so basic thing and is it really missed in muse ?

  • Mavericks, only one site show question mark instead of images

    Hi,
         Updated to Mavericks, only one site show question mark instead of images. Tried safari, chrome and firefox all of them have same problem of showing images of this site. Tried reset, empty cachs, cookies, did not work. Any one have a clue to solve this? Thx.
    BTW, the site is: ssense.com

    Thanks! lol, seems silly now i had to post here when all i had to do was close and relaunch... sorry for wasting your time. thanks to those who answered.

  • ACR 4.3 - Heal/Spot Removal One Image Only

    I must be missing something obvious. If I want to remove sensor dust spots on one image only in ACR, what's the process? The RWCR Schewe book documents the process only for multiple images. I know I could just go into PS and do it, but since I am processing the image in ACR, I thought it might be more convenient just to stay in ACR. I can get the spots and the clones selected, but I cannot finish the deal for just one image.
    MacBook Pro - OS 10.4.11, ACR 4.3, PS CS3 - updated for Nikon D300 NEFs.

    Jeff: Thanks for your responses and efforts to assist. Yes, I know how to heal the sensor spots. Yes, I have read and reread Chapters 4 and 5. And yes, the DNG previews were updated too. When I reopen the NEFs in ACR 4.3.1 I no longer see the sensor spots.
    I think I have just come to the conclusion that I really do not understand fully what a DNG file is. When I save the NEFs with the sensor spots "healed" as a DNG file and then open that file in Apple Aperture (where I presently have many projects organized - but Aperture does not support D300 NEFs), the sensor spots are still there - in fact none of the image edits are there either. I was expecting the DNG file to behave as if the ACR image edits would change the DNG image. I had lost sight of the fact that the DNG file is still a RAW image file. The edits must be a separate part of the DNG file and Aperture cannot interpret the edits. I probably have this all wrong.
    You might ask why not use Bridge as my organizational software instead of Aperture. The answer is that I have had Aperture for a year and a half. I am now just learning Bridge (with the help of your book). So, I am not there YET. I will use Bridge. BUT, one step and a time. I need to learn how to process RAW files and make the images look better than Aperture can presently do. Their tools are not as powerful as ACRs. And Capture NX 1.31 which I got free with the D300 is a mess to use (NIkon users rave about NX, but I cannot see how it could be better to use than ACR). Thanks for all your help.

  • Clear history hangs and takes quite a while to complete even when only one site is visited

    clear history hangs and takes quite a while to complete even when only one site is visited . While not a major problem it is annoying

    Hi Frank,
    Does this Release Management performance isssue occurred when you use it at first time? Do you have any setting on your TFS? Would you please tell us your TFS version? 
    If you have any repro steps, please share with us, thank you. 
    Best Regards,
    Dear Molly,
    Yes, this issue has occurred right from the beginning when we started using Release Management.
    Could you please clarify what you mean by "do you have any setting on your TFS"? As far as I know, our TFS installation is a straightforward and normal one.
    Our TFS version is TFS 2013.
    The steps to reproduce (in the simplest scenario) are as follows:
    Create a new project in Visual Studio 2013, containing one PowerShell script file. In the script file, perform a simple command such as "New-Item E:\Temp3 -itemtype directory -force".
    Perform a successful build of the project, making sure that the script file is copied to the drop folder.
    Create a vNext Component in the Release Management Client, that refers to the directory in the drop folder that contains the script file.
    Create a new vNext Release Template in the Release Management Client, containing one "Deploying using PS/DSC" action. In that action, set the PSScriptPath to the script file we created.
    Perform a new Release using the Release Template we just created. The Deploy action will take a long time, even though the script itself takes less than a second to run.
    Please let me know if you need any more information.

  • Flagging only one image

    Hi. I am a longtime Lightroom user but trying to give Aperture a chance. I want to be able to select 4-5 images and view them as large as possible (I'm using "view multiple" under view cycles and then be able to tag or rate only the one image I've selected of this group. I can do this in Lightroom but Aperture sees that all these images are selected and therefore all get the rating/tag. But I've only selected them for the purposes of viewing them larger, not to give them the same metadata.
    Thanks
    Andy

    Hi Andy -- Welcome to our little sunny clearing in the orchard.
    Aperture is subtle and deft, but not at all obvious.
    There are at least two good ways to do what you want:
    • Turn on "Primary Only".  This will apply any changes you make to just the Primary Selection (indicated by the heavier border) and leave the other selected Images unaltered.
    • Use the controls on the Info tab of the Inspector.  These controls are always limited to the Primary Selection (just as the menu commands are usually applied to all selected Images).  If there is a control you want that does not show, select a Metadata View that includes it, or add it to the Metadata View that you want to use.  The same works for Adjustments as well.
    Somewhat more confusing for beginners (and a little different that what you asked for):
    • You can select a number of Images, show only one of the selection in the Viewer, and step through the _selected_ Images.  Set the Main Viewer to "Show One", and use "{apostrophe}" to step through the selected Images.

  • I get a message saying backup failed on my Time Machine because backup disk image is already in use. I am the only one using this machine.

    My Time Capsule keeps telling me that backup failed because backup disk image is already in use. I'm the only one using this machine.

    Pull the power cord from the back of the Time Capsule
    Count to ten
    Plug the power cord back into the back of the Time Capsule
    Wait a few minutes, then try a backup

Maybe you are looking for

  • E72 IMAP email sent items sync broken - Tech Suppo...

    After a frustrating 30 mins on the phone with a level 2 tech support and being fobbed off with an unnecessary patch for MfE I emailed tech support "i have an imap email account with GMX set up on my e72 using nokia messaging.  it sends and receives e

  • Creation of purchase info records using me11 and me12

    are there any bapis for creation / update  of purchase info records with  pricing conditions using transaction me11 and me12 ? plz tell me ? Moderator message: please search for available information before asking. locked by: Thomas Zloch on Aug 10,

  • How to make a Web Page with Labview?

    I have a Project: CONTROL A CAMERA OVER INTERNET (with Labview) i try to make a Web Page but it s very difficult for me.I have Labview 8.6 and Internet Toolkit. Why can i make a simple Web page? Why can i control the camera over Internet? Thanks...

  • BAPI for GR (goods Reciept) / IR (invoice Reciept)

    Hi, please tell me the BAPI for GR / IR to upload the Data into SAP. Thanks & Regards Raghunath.S

  • PSE 6 MAC COntact Sheet II

    I can't get Contact Sheet II to work, I follow the guide selecting files in Bridge, it launches Photoshop but then nothing happens ! I am using PSE 6 on an iMac.