Flashing & Rotate image problem!

1) how can i make an image flashing ( appear & disappear ) in JLabel?.
2)how can i make it rotate?.
plz need help!

both questions easily answered by searching the forums - numerous examples

Similar Messages

  • Flash video image problem with newest nVidia driver

    I've got a very weird display error since the last update. Basically, whenever I play flash video and afterwards close the browser (chromium), any purely black surfaces will display the full flash player image. The effect is only visible in the "first" window of a xmonad tab, that means if I cycle the window positions it will be in a different window. The others are not affected. When I restart X, I can see the flash video image flashing up shortly on the black screen. Restarting X fixes the issue. I cannot take any screenshot of the problem because the error is NOT visible on the screenshot. Therefore I suspect that some frame buffer used for the flash player is not getting cleared properly after exiting the browser, but it's really little more than a wild guess.
    As there are multiple components involved, I'm at a loss of where this might be coming from. I hope someone might be able to shed some light on this situation. Please post here if you have the same problem or have any idea why this happens!
    My setup:
    -nvidia 260.19.36-2
    -flashplugin 10.2.152.27-1
    -chromium 9.0.597.94-1
    -xmonad 0.9.2-1
    -xmonad-contrib 0.9.2-1
    Last edited by Natanji (2011-02-15 11:33:11)

    Natanji wrote:Thanks, that seems like it helped. So this is a flashplayer bug? Was it already reported?
    if you asking about a bug reported on arch linux bugtracker, then you are doing it the wrong way.
    flash and nvidia are closed source, we can't do anything. A better place is to submit bugs to nvidia and adobe.
    Now i see that nvidia 270.26 was released. Maybe you want to check that out:
    http://www.nvnews.net/vbulletin/showthread.php?t=159683

  • Need Help In Solving Rotation Image Problem

    1 down vote favorite
    Hi guys ,
    I need your help please. I have spent hours trying to solve it but not working.
    I have an image i am rotating when the user clicks on a button. But it is not working.
    I would like to see the image rotating gradually till it stops but it doesn't. This it what it does. After i click the button, i don't see it rotating. But when i minimize and maximize the main window, i see the image just rotate(flip) fast like that. It does the rotation but i don't see it as it is doing. It just rotate in a second after minimize and maximize the main window.
    I thimk the problem deals with updating the GUI as it is rotating but i don't know how to fix it.
    these are the code . Please i have trimed down the code for easy reading.
    public class KrusPanel extends JPanel{
         private Image crossingImage;
         private int currentRotationAngle;
         private int imageWidth;
         private int imageHeight;
         private AffineTransform affineTransform;
         private boolean clockwise;
         private static int ROTATE_ANGLE_OFFSET = 2;
         private int xCoordinate;
         private int yCoordinate;
         private javax.swing.Timer timer;
         private void initialize(){
          this.crossingImage = Toolkit.getDefaultToolkit().getImage("images/railCrossing3.JPG");
          this.imageWidth = this.getCrossingImage().getWidth(this);
          this.imageHeight = this.getCrossingImage().getHeight(this);
          this.affineTransform = new AffineTransform();
          this.setCurrentRotationAngle(90);
          timer = new javax.swing.Timer(20, new MoveListener());
    public KrusPanel (int x, int y) {
      this.setxCoordinate(x);
      this.setyCoordinate(y);
      this.setPreferredSize(new Dimension(50, 50));
      this.setBackground(Color.red);
      TitledBorder border = BorderFactory.createTitledBorder("image");
      this.setLayout(new FlowLayout());
      this.initialize();
    public void paintComponent(Graphics grp){
               Rectangle rect = this.getBounds();
               Graphics2D g2d = (Graphics2D)grp;
               g2d.setColor(Color.BLACK);
               this.getAffineTransform().setToTranslation(this.getxCoordinate(), this.getyCoordinate());
               this.getAffineTransform().rotate(Math.toRadians(this.getCurrentRotationAngle()), this.getCrossingImage().getWidth(this) /2,
                                       this.getCrossingImage().getHeight(this)/2);
              g2d.drawImage(this.getCrossingImage(), this.getAffineTransform(), this);
    public void rotateCrossing(){
                 this.currentRotationAngle += ROTATE_ANGLE_OFFSET;
                 int test = this.currentRotationAngle % 90;
                 if(test == 0){
                  this.setCurrentRotationAngle(this.currentRotationAngle);
                  timer.stop();
             repaint();
      private class MoveListener implements ActionListener {
             public void actionPerformed(ActionEvent e) {
                rotateCrossing();
                repaint();
    //  There are getters and setters method here but i have removed them to make the code shorter.
    }Next 2 Classes
    // I have removed many thins in this class so simplicity. This class is consists of Tiles of BufferdImage and the
    // KrusPanel class is at the array position [2][2]. It is the KrusPanel class that i want to rotate.
    public class SeePanel extends JPanel{
          private static KrusPanel crossing;
          private void initializeComponents(){
       timer = new javax.swing.Timer(70, new MoveListener());
       this.crossing = new CrossingPanel(261,261);
        public SeePanel(){
      this.initializeComponents();
         public void paintComponent(Graphics comp){
       super.paintComponent(comp);
      comp2D = (Graphics2D)comp;
      BasicStroke pen = new BasicStroke(15.0F, BasicStroke.CAP_BUTT,BasicStroke.JOIN_ROUND);
         comp2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                 RenderingHints.VALUE_ANTIALIAS_ON);
         comp2D.setPaint(Color.red);
         comp2D.setBackground(Color.WHITE);
         comp2D.drawImage(img, 0, 0, null);
         comp2D.draw(this.horizontalRail);
         this.crossing.paintComponent(comp2D);
         this.rob.drawRobot(comp2D);
      public static void rotateCrossing(){
       this.crossing.getTimer().start();
       repaint();
    // i tried below code also it didn't work. so i put them in comments
       Runnable rotateCrossing1 = new Runnable(){  // to be removed
             public void run() {
            crossing.getTimer().start();
          SwingUtilities.invokeLater(rotateCrossing1);
    // MAIN CLASS
    // This is the GUI class which consists of buttons and others
    public class MainAPP{
       SeePanel = new SeePanel();
      // Buttons declarations here and others
    public MainAPP(){
      // all listener registers here
    // Here i call the rotateCrossing() of the SeePanel class but it is not working as i want.
    // I would like to see the image rotating gradually till it stops but it doesn't.
    //This it what it does. After i click the button, i don't see it rotating. But when i minimize and maximize the main window,
    // i see the image  just rotate(flip) fast like that.
    public void actionPerformed(ActionEvent e){
        SeePanel.rotateCrossing();                 
        public static main(string[] str){
    }Please do help me to fix it.
    thanks

    kap wrote:
    1 down vote favoriteHuh?
    ..Please i have trimed down the code for easy reading. ..Perhaps I am just lazy, but I don't actually like reading code until I've seen it compile in my editor & run. That is why I will advise that for better help sooner, post an SSCCE. For SSCCEs that use images, either generate an image in the code, or hot-link to an image available on the internet. I offer some [images at my site|http://pscode.org/media/#image] that you can hot-link to.

  • I have a Flash Sample to rotate images and text but I not find a way to display special characters

    Hello everyone.
    I bought a very nice Flash application that rotate images, and text of any color and size. It use an XML input file.
    I've posted here, a complete copy, so any of you can download, view and use it freely.
    I would appreciate if any of you know how to do, so that the text displayed, including the characters I use in my language (Spanish), such as á, é, í, ó, ú, ñ, and other special characters.
    In fact, I could not find a way to do it, because I'm not expert Flash, and less in ActionScript.
    If any of you would help me on that, I thank you implement the appropriate adjustments and compressed into a. zip file, and let me know where to download it, or if you prefer you can send it to my email: [email protected]
    After all compressed in .zip format is a very small file: 430K.
    Click here to download the complete sample.
    Thanks.
    =====================================
    Translated using http://translate.google.es
    =====================================

    Hello Rinus,
    If I understood your last post correctly, then problem 2 is resolved, right?
    Regarding problem 3:
    I'm not asking you to share exact VIs.
    I just want to see a very simple VI that explains the concept of what you're trying to do, what should happen (this can be in words that refer to the front panel elements) and what you've tried.
    The terminology you're using isn't clear to me without an extra explanation.
    This could even be only a Front Panel with a few buttons on where you just describe what should happen with specific controls/indicators.
    Based on the first post it is not clear to me what you mean with:
    - A "button element":
      Are you talking about a control, an indicator, a cluster that contains multiple control?
    - The structure:
      Is this an event structure, case structure, for loop, ...?
    Is it seems like you want to programmatically control Front Panel objects, which on itself is no problem at all independent of how many objects you want to control.
    Please share with me simple example of what goes wrong and explain which things should happen on that specific Front Panel.
    This will allow me to help you and also allow me to guide you along the right path.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Problem with rotating images in Photoshop CC

    When I rotate images in Photoshop CC I get jagged edges and not smooth as before. What has changed? How can I sort this out? Is my software corrupted?  Still works perfectly in CS3.

    If your using Free Transform, then look at the Interpolation settings in the tool options bar
    Try one of the Bicubic settings
    (i have it set to Bicubic)
    For rotating the Canvas look at the Image Interpolation settings under Photoshop (Edit)>Preferences>General and use one of the Bicubic settings
    The standard Bicubic setting is a good all around setting

  • Rotated image overlaps other controls

    Hi, I am working on an AIR app involving images. One of the functionalities is viewing as well as rotating images. I made a simple test app to illustrate this portion:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
        <mx:Script>
            <![CDATA[
                private function rotate():void
                    var bitmap:Bitmap = Bitmap(img.content);
                    var matrix:Matrix = bitmap.transform.matrix;
                    var centerX:Number = bitmap.width/2;
                    var centerY:Number = bitmap.height/2;
                    matrix.translate(-centerX, -centerY);
                    matrix.rotate(90*Math.PI/180);
                    matrix.translate(centerY, centerX);
                    bitmap.transform.matrix = matrix;
            ]]>
        </mx:Script>
        <mx:Text width="100%" text="Some text"/>
        <mx:Image id="img" width="100%" height="100%" source="test.jpg" horizontalAlign="center" verticalAlign="middle"/>
        <mx:Button label="rotate 90" click="rotate()"/>
    </mx:WindowedApplication>
    The application window has text on the top and a button on the bottom, with the image in the middle. Each click of the button rotates the image by 90 degrees.
    On launch, the app works great. It fetches the image file and fits it to the Image container. As I resize the application, the image also resizes and maintains the position relative to the other controls. Top text and bottom button are where they should be. All good. Let's assume the image is landscape/wide. After I perform the rotate 90 degrees by clicking the button, although the image is rotated and now in portrait orientation, the bottom portion of the image is now out of the image boundary and overlapping the button.
    Is there a way to tell the image to fit the content to the container again? Basically, re-layout the whole thing as if the image is in this new orientation.
    I suppose I can try to figure out a change in scale and resize the image, but I am not sure if this will hold when the user resizes the application. Also, the rotated image is now rather far to the left, as the "top left" corner is where a landscape image would be. For a portait orientation that's centered horizontally, it should be further to the right. I suppose I can also come up with some formula to center the rotated image. It just seems that the application already has all this logic built in, as it did exactly what I wanted when the image was loaded initially. If I can just ask the application to do it again. Note that similar issue occurs if the image starts out in portrait orientation and is rotated to landscape (too far to the right).
    Thanks in advance for the help.
    Will

    Thanks Sheila and Arnis,
    Today I opened the project to try different zoom settings and the problem has vanished; I get the correct arrow at zooms of 100, 120 and 140%.
    Likely a bug somewhere deep in Frame's innards. Anyway we've ordered TCS3 so soon I'll be using FM10. Thanks anyway.
    --- Derek

  • Is there a way to rotate images in iPhoto on the ipad

    I take photos with the iPhone or iPad and unless I sync them back to the Mac, there does not seem to be a way to rotate images. This makes having a nice slideshow (for the unlock screen) a problem as a bunch of images are all sideways. I'd like to be able to do simple edits like this in the device and not have to sync back and forth.

    You can't in the Photos app itself, though there are third-party apps that allow you e.g. PS Express (though the saved rotated version of the photo will be put in the Saved Photos album).

  • Flash slideshow display problem in IE

    Hi,
    I've just  inserted a .swf file into my (DW) site and viewed it in a number of  browers without a problem. Apart from IE which displays 'content on this  page requires new version of flash' text/image. What I'd like to know  is that is there a way for the viewer to see an alternative image  (static .jpeg for example) if they don't have the latest version of  Flash player? (rather than downloading it)?
    Thanks in advance...

    Check out these resources listed below:
    Flash
    Embed Params
    and this site for examples of the usage
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_4150
    Look at the alignment parameters and play with the settings
    through the parameters tags to get the look and alignment you are
    looking for.

  • Could work an animated flash bitmap image exported in html 5, in DPS ?

    I'm new in DPS, just started for a couple of weeks and I need to use a image in an animation.
    I created the animation in inDesign exported in .fla, used de toolkit js, load it in a container with web content overlay, and when I preview it with Adobe Content Viewer it doesn't work, it apears a blank screen. Neighter of animation from that stage won't work.
    To be very precise any animation works fine, when I test the html in a browser, the problem appears only in the content viewer.
    The animation is very simple: smal logo entering in the stage from the right, not very complex.
    I tried in flash with other images in a test file and loaded in inDesign, and still don't work. Other vector animation works well, no problem. I saw that if I have an image in library in flash and export a simple animation with a vector ball, won't work in indesign preview, with content viewer.
    My question is, Could work an animated flash bitmap image exported in html 5, in DPS ?  If so, what should I need to do ?
    Thank you in advance.

    Two possible solutions I was considering:
    1) In my index/first page, have all the swfs present (scaled to 1x1, behind something, or invisible) and have a preloader code on that first page... so all the content gets loaded before continuing onto the rest of the site.  That would certainly work in making the site run quick... but would mean a relatively lengthy wait at the start.  Luckily, unlike my current site, all the actual site content (aside from the header/nav interface) is HTML... so the bulk of the site's content is in the HTML pages, not as part of the Flash header... so it probably wouldn't be too horrific a wait.  However, it would be loading EIGHT of these swfs, since there are eight pages... so then maybe it would be....
    2) Have an swf that consists of just the 'draw up' of the interface, and it's idle state... then when each button is pressed, load a new swf to replace the main one, which has the specific page's animated title sequence, and ends with the code to load the html page.  So, each separate HTML page would have embedded into it only the main swf, and the title animation swf would be swapped in when a nav button is pressed.  Main issue here is each button press would envoke a preloader sequence (kind of tedious)... and unfortunately all the 'main interface' elements loaded in with the main swf would have to be loaded in again at the start of each animated title swf (although none of the draw up... just the loading of the interface and buttons).  For highspeed users, it should be okay, I guess....
    Thoughts or better ideas?

  • Rotated images in inDesign

    I have used CS6 on my Mac (10.6.8) to create a 240 page book with several images on most pages. Some of these have been rotated by about 20 degrees or so for effect, and are fine when viewed on inDesign. However, when exported to pdf in high quality mode a grey (un-rotated) box appears around each of the rotated images. It's faint but it is there. I did try rotating in Photoshop first and then creating a clipping path, which I have done for other images but this appears compromised by the rotation also. Grouping a number of images before rotating, as I have done on the cover, also seems to cause a particular problem, with the crop then coming in at an angle also. Even if you then ungroup these, the program seems to remember they were grouped before and still refuses to do a vertical crop, though it behaves ok with the rotated image before it is grouped. Drop Shadows on the title text appear VERY dull on my screen when viewed in the high-quality pdf mode also, though a friend viewing the same file on his computer does not get this effect. I think I can work round most of these, but the grey boxes are a real issue.
    Thanks
    Les Brown

    Hi Peter
    interesting. I was just clicking on the file, so I think it was Apple preview. However, if I select Acrobat 10.1.1 the image looks good against a white background (my main problem.) Does this mean the file is OK to send for printing in this form? I note that for the cover image (blue background) the drop shadows are still very dull and there is still a slight colour issue with the rotated image.
    Thanks
    Les

  • Rotating images in separate htm document (DW CS4)

    Hi all,
    A few questions:
    1. I created a rotating images htm document by using the swap image function and then changing the code a bit (found this on internet). This works just fine on my PC (LiveView) and the htm document is switching between 3 images. I have placed the document in the images folder. However, when uploaded it doesnt work:
    http://www.competenciagroup.com/images/RotatingImages.htm
    2. If i get this htm document to work on the net I would like to input the htm document with the rotating images into the heading of my main document:
    http://www.competenciagroup.com/ColombiaTravel/index.html
    (just above the menu)
    I could not though figure out how to input the htm document into the existing html document.
    Anybody have any clue on the 2 questions above?
    Thanks in advance,
    Ingvar Malde

    I know plenty of people run into the issue of not being able to see their images while in design view, but mine is the exact opposite.
    My images show up as a tiny blue question mark box in Live View... As well as when I preview it in a browser localy on my machine.
    I think I know why it might be happening but dont know how to fix it...
    When I insert an image DW codes it as such:
    <img src="/images/madintro.jpg" width="470" height="267" />
    The problem seems to lie in DW adding the "/" in front of "images"
    when I manually go in and take out the "/" the image shows magically shows up as it should.
    Why has dreamweaver suddenly defaulted to making bad code? what did I do to cause this issue? And obviously how can I change it back to work again and make the image show in my DW workspace?
    Yes, the slash is exactly the problem. That is known as a Site-root relative link.These types of link are good to use in Templates because they are always the same. They don't need to be "fixed' when you generate a page from your Template into a different folder.
    The downside of using Site-root reltive links, is that you can't access the files locally. You must get the page from a web server. One exception to that is using Preview in Browser (PIB) "Temp" files.
    Read this Tech Note about setting up a Testing Server so you can see these files in Live View and PIB:
    http://blogs.adobe.com/dreamweaver/2008/12/live_view_and_siteroot_relativ.html
    If you want to switch back to using Document relative links, then setthe Relative to: field to be "Document" in the "Browse for file" dialog (folder button next to Link field in PI). This setting is sticky, so all future link will use the same setting.
    Hope this helps,
    Randy

  • Corrupt Rotated Images

    Hi
    I have made some low res scans of 35mm trannies for reference on a project that I'm working on. They are 16 bit and just over 2mb in size. The ones that have been shot in portrait format have been rotated either in Bridge or Photoshop CS3. I've imported these low res scans into Aperture and some of the rotated images display corrupted, the thumbnails in the browser are fine, it's only in the viewer that I get the problem. It only happens to the portrait images that I've rotated and not all of them. I've exported them from Aperture as TIFFs and they display fine in Photoshop.
    You can see an example of the problem here:
    <http://www.food-garden-features.co.uk/aperture/Grab.jpg>
    Can anyone shed some light on this problem?
    Thanks
    Colin.

    Hi Matt
    I'm really sorry about the delay in getting back to you, I've had two cookbooks to finish off and the project with this problem is a personal one so it has been put on the back burner for the time being.
    I don't think my problem is the same as the Adobe "Unsupported Image Format" problem, but I have found a way around it. I was hoping that Aperture 2 would make a miracle cure, but it didn't. I tried going back to Bridge and rotating the problem images back to landscape format (it was only some portrait images that were causing me trouble). this made no difference what so ever. I then tried opening them in Photoshop CS3 and rotating them back to landscape, and saving them. This seemed to do the trick! I didn't even have to re import them into Aperture, I'm not sure if this is because they are referenced files. All I have to do in Aperture is rotate them back to portrait format.
    Thanks to both of you for your ideas.
    Cheers
    Colin.

  • Rotated Images

    When I download a picture to Desktop it transfers the picture to a folder called Rotated Images no matter which ISP I am using. It also happen if I drop an image /picture onto the desktop: it sits there apx 3 seconds then creates a Rotated Images folder & the picture is there rotated 90 degrees.
    I have tried deleting the folder to Trash, emptying the Trash, and Restart. Same thing happens. Although there is no Rotated Images folder on the Desktop, as soon as I drop any image on the Desktop it creates an Rotated Images folder and the picture goes in there and rotates 90 degrees. It seemed to suddenly start. I don't believe I installed any app that would cause it to happen (I hadn't installed an app at the time it started).
    I don't know if it was 'spammed' to my iMac -possibly?
    When I use Spotlight it doesn't find Rotated Images except for the newly created folder on the Desktop.
    Has anyone encountered this problem? Has anyone found a solution? It is confusing and annoying. I have to add it to iPhoto then rotate it and Revert to Original rotates back.
    The work/around is to Rotate & Save in Photoshop, then Import to iPhoto. Bummer.
    Thank you.

    I meant to ask: Has anyone encountered this problem? Has anyone found a solution? It is confusing and annoying. I have to add it to iPhoto then rotate it and Revert to Original rotates back.
    The work/around is to Rotate & Save in Photoshop, then Import to iPhoto. Bummer.
    Thank you.

  • Rotating images and links

    I have a website that uses include commands to insert shtml files into different sections of my home page. I would like to have rotating images and text links in one of the include sections. For example, image one shows up with link to URL #1, then image two shows up with link to URL#2. Any thoughts on how to easily accomplish this? Would I use Flash, javascript?
    Thanks,
    Elliott

    This one uses JavaScript.
    http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Rotating image, decomposition page, recognizing text... etc.

    Hi,
    Each time I open new pdf file, there is a small pop-uo with black background on the right bottom of the file indicating some operations: rotating image, decomposition page, recognizing text... as here:
    These popups appear automatically, even if the document is in good quality! Meanwhile I can't navigate the document! I have to wait until the end of these processes (this could take longtime depending on the size of file) !
    Does anybody know how to deactivate these popups?  
    Thanks.

    I had this problem in Acrobat Pro 9.4.5 and just figured out how to fix it: It is related to a "read out loud" setting.
    Apparently Acrobat OCR's the document just to figure out in which order it  should be read aloud, and there's no way to disable this.  The document  I was having trouble with does have equations in it, so whether or not this takes long enough to be annoying may depend on whether the document contains things that are hard for OCR to process.
    You can fix it by editing preferences for "Reading" and change Reading Order to "Left-to-right, top-to-bottom..." instead of "Infer reading order from document (recommended)".  Then make sure Screen Reader Options is set to "Only read the currently visible pages".
    Best, J

Maybe you are looking for

  • Safari becomes unresponsive when opening Yahoo

    Strange indeed. I've been using Safari on both my Windows-based desktop and my W-b lap. My desk pc has an AMD 64, and 2 gigs of Ram. I keep it clean, fast, safe, and in selective startup. Today, I opened it and let it go to the Apple start page. I sc

  • Smartforms to Pdf preview

    Hi Experts, I am converting a smartform to pdf. That is, if I press print button in smartform, I have to store the pdf file in presentation server. This I have done. If I press preview button, pdf preview I should see. I used the FM "YSSFCOMP_PDF_PRE

  • Can't boot from Ubuntu partition after upgrading to Yosemite

    When i go to Disk Utility the Ubuntu partition appears as it always have, i had installed since Mavericks refind to boot from any partition. Now refind doesn't work and the alt/option key doesn't work either. Does anyone know a way to fix this?

  • How do spaces work - assign applications to a space

    I have read through a number of documents. I have assigned a number of apps to Space 2. If I open them when I am space 1, I thought they would open automatically in space 2. Am I being stupid or missing the point about how how app assignment is suppo

  • [svn:fx-trunk] 7718: Merged 3.x revisions 7534,7545,7711 - trunk

    Revision: 7718 Author:   [email protected] Date:     2009-06-10 09:37:18 -0700 (Wed, 10 Jun 2009) Log Message: Merged 3.x revisions 7534,7545,7711 -> trunk checkintests: pass Modified Paths:     flex/sdk/trunk/frameworks/projects/airframework/src/mx/