Decorative frame plug-in?

Is there a plug-in or tool where I can superimpose a decorative frame, like a picture frame, on top of a photoshop image?

Thanks for the input. I chose to go with AutoFX, but am having serious problems.
I recently purchased the Photo/Graphic Edges 6.0 software from AutoFX, can be found here:
http://www.autofx.com/products/pge/detail.html
I am running Windows XP with 2G of RAM. I am using this s/w as a stand-alone app, as opposed to a plugin for Adobe Photoshop.
The problem is that the program randomly crashes quite frequently, resulting in the following pop-up error message:
Windows XP pops up with the following:
PGE_6 has encountered a problem and needs to close. We are sorry the inconvenience.
If you were in the middle of something, the information you were working on might be lost.
Please tell Microsoft about this problem. We have created an error report that you can send to us. We will treat this report as confidential and anonymous.
To see what data this report contains Click Here.
I uninstalled and reinstalled the program and still have the same issues. I've searched and found a thread from a couple of years ago where someone else had the same problems. I fear that this may be a software issue. Here is the link to what I found:
http://graphicsgalaxy.com/forums/thepluginsite/viewtopic.php?t=1604
I posted on the above thread and also submitted a problem report to Auto FX.
No other program on my computer crashes randomly like this.
Any suggestions?
Thanks so much,
Angela

Similar Messages

  • Flash frame plug-in for FCP

    Hello,
    maybe somebody has a flash frame plug-in for FCP and could share it with me?

    yes.
    if you go here - http://www.mattias.nu/plugins/ you can download a FREE bundle of excellent fliters/transitions... one of which is a superb flashframe transition... i use it all the time!

  • Decorative Frames and Indesign

    I am trying to place images in frames that have 'teeth' borders
    At the moment I do it like this:
    1) Create the teethed border in Photoshop with a clipping path
    2) Bring the border into Indesign
    3) Use Convert Clipping Path to Frame to make the border into a frame
    4) Import my image into the frame
    Is there an easier way?
    The main problem is that when I resize the frame, the teeth become distored. The only way around this is to create them actual size in Photoshop, which limits my control.
    Maybe a script or something exists?

    The best program for creating decorative borders that print cleanly and will scale is Illustrator. You create a Pattern Brush. You can define different artwork for the sides and corners. You could save this as an AI file and place in InDesign.
    InDesign has no such feature, and, as you've found, Photoshop creates bitmap images which don't resize or scale.

  • Re-frame bad video by zooming in?

    I want to zoom in on some video clips that were poorly shot and center the action in the frame. Anyone know of some inexpensive software, shareware, or utility that can do this?

    Here are a couple options:
    - MPEG Streamclip allows cropping of the video (but if you stretch a smaller group of pixels over the screen, it will degrade quality - so experiment with a short clip before you convert a bunch of video if you want it full screen).
    - Add a decorative frame that covers up the offending part of the video. Quicktime Pro ($20?) lets you create frames (additional video layer), which can be any shape or size (or opacity) that you can design in Photoshop/Elements.
    John

  • Using photo frame

    Got this digital photo frame; plugged it into my PB and OS X said "Disk Insertion: the disk you inserted was not readable by this computer. Initialize... Ignore Eject". None of those options seems right; what to do?
    I did try Initialize... and it brought up Disk Doctor and the device appeared there, but it did not appear on the desktop.
    What to do?

    Below is a step by step guide with pictures so keep scrolling.  You'll have to figure out how to apply these steps with other software.
    The easiet solution is offered by Ann Bens.  Here is a screen shot of how I used the AME.  Make sure you UNCHECK export sequence and format to jpg or tiff.
    Its quicker to use the export frame button on the monitor but if your going to use the end product as a still then you have to spend the same or more time fixing it; the AME is the best solution.  Here is how to fix a jpg using photoshop.
    STEP 1 - you'll see this window upon opening the file exported from PPro in PS.
    STEP 2 - You'll see a widescreen picture but ...
    once you uncheck "pixel aspect ratio correction" you see it looks squished
    STEP 3 you'll want to resize it in the following sequence
    Change the pixels from 72 to 300
    B. Change the width to either 10 or 5
    C. UNCHECK "constrain proportions" and change the dimension to 1920 Wide and 1080 Height
    Now save the file and its ready to use in most other software and for use with online services like Costco's photo books and printers.
    CHEERS!

  • How to edit table frame style

    I would like to know how to edit table style in front panel. For the example shown below, I would like to remove the gray color overcast frame.
    I couldn't find the table style editor.
    Solved!
    Go to Solution.

    Try using decoration frames. Find the attached vi too
    Attachments:
    frame.vi ‏6 KB

  • How can I display Flash Videos without any Flex application decoration

    I develop a flv video player with Flex3 and have problems to
    get rid of the application decoration (frame, border and the like)
    that is part of a standard Flex application. My video player is
    200px x 200px and I only wanna see what the video shows, so that
    the Flex application allocates 200px x 200px.
    It is not clear to me if this can be reached through special
    tags resp. attributes or if I have to do something in the CSS
    area.

    copy and compile this one taken from www.theflexteam.com with
    a couple of extra things, is that it?:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" backgroundColor="#000000"
    backgroundGradientColors="[#000000, #000000]">
    <mx:Script>
    <![CDATA[
    private function playVideo():void
    videoPod.play();
    private function pauseVideo():void
    videoPod.pause();
    private function stopVideo():void
    videoPod.stop();
    ]]>
    </mx:Script>
    <mx:VideoDisplay id="videoPod" source="
    http://www.theflexteam.com/gfx/flvs/gorillaz_high.flv"
    backgroundColor="#000000" backgroundAlpha="0"
    shadowDistance="0" shadowDirection="center"
    />
    <mx:ControlBar>
    <mx:Button id="stopBtn" label="Stop"
    click="stopVideo();"/>
    <mx:Button id="playBtn" label="Play"
    click="playVideo();"/>
    <mx:Button id="pauseBtn" label="Pause"
    click="pauseVideo();"/>
    </mx:ControlBar>
    </mx:Application>
    /cujino

  • Google Chrome Frame (needed for prime) will soon be unsupported

    Hello
    In our company, we are using Internet Explorer, and therefore we have to use Google Chrome Frame plug-in for Internet Explorer, for our
    Lobby Ambassadors to create guest-users to the wireless infrastructure.
    But now when we are using Chrome frame in Internet Exolorer we get this message
    Does anyone know if cisco prime in the future will support Internet Explorer (without the chrome frame plugin)
    i know it could be solved by changing to a propper browser, but as park of our company policy, we need to use Internet Explorer

    Yes thats true , for Lobby Ambassadors, IE 9 plus google chrome plugin is required! Hopefully if IE upcoming versions have the plugins , you don't need to have the chrome one!

  • Is it possible to disable the minimize, maximize and close on a Frame?

    Is it possible to disable the minimize, maximize and close buttons on a Frame?
    Is it possible to make invisible, minimize, maximize and close buttons of the frame?
    What methods would I use to do so?
    Thank You

    The minimize, maximize and close buttons are defined as the windows decoration. To disable the windows decoration,frame.setUndecorated(true);The setUndecorated() method can only be called while the frame is not displayable.
    Then you can redesign the look and feel of the rootpane and call
    frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);

  • What version of Windows is IE6/7 running on?

    Hello,
    I have been testing out some HTML5/CSS3 code, which uses the Modernizr script to render the new HTML5 classes in older browsers. I've had some trouble with layout in IE6 and IE7 on my test site (http://www.bluedutch.com/cafe/index.html), so I prompted the user to install the Chrome Frame plug-in (http://code.google.com/chrome/chromeframe/) for IE <=7.
    When viewing the site in these browsers, the user should be prompted to install the plugin. When I preview the site in BL in IE6/7, I get the window prompting to install the plugin, but the plugin window displays a message "We are sorry. Google Chrome Frame is only available for IE 6,7,8, and 9 on Windows 7, Vista, XP SP2 or greater."
    I've uploaded a screenshot of the issue here: http://www.bluedutch.com/cafe/screenshot.jpg
    I'm just curious what version of Windows IE is rendering the screenshots from, since the plugin doesn't seem to detect it in one of the aforementioned. Are IE 8 and 9, as well as the other Windows browsers running on the same Windows platform? Since rendering seems to be very platform dependent in Windows, I was curious about how this issue might be affecting website display.
    Thanks,
    Marie

    Thanks Mark!
    That explains the Chrome plugin issue I am seeing.
    I've commented out the get Chrome plugin for IE7 on the site, just so you can see the behavior in IE7.
    If I understand Modernizr, the layout should look similar to IE8, but some of the new HTML5 tags, like <menu> aren't aligning properly, and some of the other divs are messed up. This could be due to font sizing in my CSS, and maybe some other unrecognized classes that IE7 just doesn't get, which I will also investigate further.
    But if you do find out any info on your side that would be helpful, I'd really appreciate any thoughts.
    The BrowserLab is very useful, by the way! I just discovered it yesterday after searching in vain for ways to render pages from my Mac on Windows browsers. Thanks for its implementation and support!
    Marie

  • Color of selected tab panel tab

    Hello all,
    I'd like to know the orange like color of the upper part of a selected tab panel tab, see the picture below.
    Actually, these are two colors, orange and a darker, 'shaded' orange. I don't mind which color value I can obtain, but I'd like to use the same color for other controls (LED, decoration frame) as well.
    Does this color depend on the Windows theme? If so, I'd be happy about a possibility of obtaining this property programmatically.
    If this color is always the same, I can obtain it myself using Photoshop...
    Thanks a lot,
    Wolfgang
    Solved!
    Go to Solution.

    When the panel has ATTR_CONFORM_TO_SYSTEM_THEME set, CVI lets Windows draw the tabs by calling DrawThemeBackground with partIDs such as TABP_TABITEM, etc. The picture that you posted is the XP theme. The Windows 7 theme is different and it looks like this...
    I checked out the Windows function GetSysColor, but didn't see a way to get that color. Anyway, since the tabs draw differently on XP and Vista/Windows 7, you may not want to use that color in different controls.

  • Content pane painting over JPopupMenu

    I have a rather complex series of overridden components (JMenuBar, JPanels, JMenus, JFrame, etc.) that I aggregate to form a 'theme frame' --- basically a 'lightweight' L&F decorated frame. The main frame is an UNDECORATED JFrame derivation, in which I basically install a derived JMenuBar class that looks and acts like the top portion of the frame's 'border' (i.e. the title bar), as well as accomodating the menu items for the frame. I then launch several of these frames from the main application, each with its own set of menus (a single top-level JMenu with a few menu items on the popup).
    My problem is this... if there are more than 1 of these frames extant after the initial start-up of the application, I can invoke the top-level menu on all of the frames, but only 1 of them actually paints it correctly... the others will show the JPopupMenu, but then the embedded content repaints AFTERWARDS, thus painting over all but the first item on the menu. What's really very bazaar is that it seems to depend totally on location of the frame on the screen (i.e. in relation to the other frames). Initially, only the top-most and/or left-most frame will paint the JPopupMenu correctly, and the rest will exhibit this "show the popup, then paint the content pane over it" behavior.
    With the help of print statements, I've been able to determine that the frame which paints the popup correctly DOES NOT get a repaint() notification on it's content-pane, whereas the others do (hence the 'cover-up' behavior of those).
    It may be useful to note that the 'content' of these frames are actually applets, which themselves have a complex set of specialized components embedded in them.
    None of the menu objects or other components involved are static to the frame class, so nothing's being shared... also, if I move one of the non-functioning windows to a different location on the screen, then the menu works fine... move it back, and the menu gets painted over again.
    I'm using JDK 1.4, JBuilder X, all components are Swing.
    Any help, please??????
    XNHillBilly

    That did the trick! I had a gut feeling it was something simple like that... I still don't fully understand exactly what was going on (why one frame would paint fine, while the others wouldn't), but that's less important than having it work correctly at this point ;-)
    Thanks mucho rykk,
    XNHillBilly

  • BufferedImages and Swing's ScrollablePicture in a JPanel

    I'm referring to http://java.sun.com/developer/technicalArticles/Media/imagestrategies/index.html paper.
    As I read this excellent paper, I decided to go for the BufferedImage strategy.
    But I can't put my BufferedImage into my ScrollablePicture as below:
    JPanel picPanel = new JPanel(new GridBagLayout());
    //Set up the scroll pane.
    picture = new ScrollablePicture(imageIcon_, columnView.getIncrement()); // OK
    //picture = new ScrollablePicture(bImg, columnView.getIncrement()); // NOT OK = don't work
    ...How to bypass the message "java:542: cannot resolve symbol symbol : constructor ScrollablePicture (java.awt.image.BufferedImage,int)"
    It is very important as all my code is based on BufferedImage to apply many operations on the image.
    ? I believe the API does not allow to perform RGB to B&W operation on ImageIcon. ?
    Thanks to all.
    dimitryous r.

    Hi camickr,
    Hi all,
    I pass trough my SSCCE. Good advice from camickr. But it was not so easy:
    Short: not so short
    Self contained: believe so
    Correct: Java 1.4.2 code
    Compilable: yes
    I'm back with formatted code.
    I'm sure you will fire at me all of you. Anyway if I don't even try, I will never succeed.
    //  TooAwoo.java
    //  TooAwoo
    //     part of this code is from Sun's JavaTutorial 1.4.2
    import java.applet.Applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.GraphicsEnvironment;
    import java.awt.image.*;
    import java.lang.*;
    import java.lang.String;
    import java.lang.Object;
    import java.net.URL;
    import java.net.MalformedURLException;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.event.MouseInputAdapter;
    import javax.swing.ImageIcon;
    import javax.swing.JScrollPane;
    import javax.swing.JToggleButton;
    import java.io.FilePermission;
    public class TooAwoo extends JApplet implements
                                                                ChangeListener,
                                                                ActionListener,
                                                                ItemListener
         FilePermission p = new FilePermission("<<ALL FILES>>", "read,write");
        public BufferedImage bImg;
         Font newFont = new Font("SansSerif", Font.PLAIN, 10);
         ImageControls RightPanel;
         public static int initOx = 0;
         public static int initOy = 0;
         int init_ww, init_wh, set_x, set_y = 0;
         final int pSP_w = 520; // final width of pictureScrollPane
         final int pSP_h = 650; // final height of pictureScrollPane
         Dimension applet_window; // applet dimensions
         public Image image;
         public ImageIcon imageIcon_;
         public static BufferedImage binull;
         // ScrollablePicture stuff
         public Rule columnView;
        public Rule rowView;
         public JToggleButton isMetric;
        public ScrollablePicture picture;
         public JScrollPane pictureScrollPane;
         public TooAwoo() {
              // nothing here
        public void init() {
              applet_window = getSize();                                                            // read applet dimensions in TooAwoo.html
              init_ww = applet_window.width;
              init_wh = applet_window.height;
              // get the image to use width > 680 (see final int pSP_w above)
              image = getImage(getDocumentBase(), "images/ReallyBig.jpg");
              imageIcon_ = createImageIcon("images/ReallyBig.jpg");
              int iw = imageIcon_.getIconWidth();
              int ih = imageIcon_.getIconHeight();
              bImg = new BufferedImage(iw, ih, BufferedImage.TYPE_INT_RGB);
              // Panels
              // ImageDisplayPanel
            //Create the row and column headers.
            columnView = new Rule(Rule.HORIZONTAL, true);
            rowView = new Rule(Rule.VERTICAL, true);
            if (imageIcon_ != null) {
                columnView.setPreferredWidth(imageIcon_.getIconWidth());
                rowView.setPreferredHeight(imageIcon_.getIconHeight());
            } else {
                columnView.setPreferredWidth(640);
                rowView.setPreferredHeight(480);
            //Create the upper left corner.
            JPanel buttonCorner = new JPanel();                                                  //use FlowLayout
            isMetric = new JToggleButton("cm", true);
            isMetric.setFont(newFont);
            isMetric.setMargin(new Insets(2,2,2,2));
            isMetric.addItemListener(this);                                                       // !!! not OK = don't work: button is not firing
            buttonCorner.add(isMetric);
              JPanel ImageDisplayPanel = new JPanel(new GridBagLayout());
            //Set up the scroll pane.
              picture = new ScrollablePicture(imageIcon_, columnView.getIncrement());     // either
              //picture = new ScrollablePicture(bImp, columnView.getIncrement());          // or
              // ********** if bImp change the lines in ScrollablePicture.java **********
            Graphics g = bImg.getGraphics();
              g.drawImage(bImg, 0, 0, null);
              JScrollPane pictureScrollPane = new JScrollPane(picture);
            pictureScrollPane.setPreferredSize(new Dimension(pSP_w, pSP_h));
            pictureScrollPane.setViewportBorder(
                    BorderFactory.createLineBorder(Color.black));
            pictureScrollPane.setColumnHeaderView(columnView);
            pictureScrollPane.setRowHeaderView(rowView);
              //Set the corners.
            pictureScrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER, buttonCorner);
            pictureScrollPane.setCorner(JScrollPane.LOWER_LEFT_CORNER,
                                        new Corner());
            pictureScrollPane.setCorner(JScrollPane.UPPER_RIGHT_CORNER,
                                        new Corner());
              //set_y++;
              addToGridBag(ImageDisplayPanel,pictureScrollPane, set_x, set_y, 1, 1, 0, 0); // 0,0
              getContentPane().add( BorderLayout.WEST, ImageDisplayPanel);               // where to display the bImg: left
              RightPanel = new ImageControls();                                                  // call the ImageControls class
              RightPanel.setBackground(Color.black);
              getContentPane().add( BorderLayout.EAST, RightPanel);
              //getContentPane().add( BorderLayout.EAST, ToolsPanel);                         // where to display the tools: right
              JPanel GlobalPanel = new JPanel(new GridBagLayout());
              getContentPane().add( BorderLayout.NORTH, GlobalPanel);
         } // end public void init()
         public Graphics2D createGraphics2D(int width,
                                                    int height,
                                                    BufferedImage bi,
                                                    Graphics g) {                                   // called by ImageControls paint
              Graphics2D g2 = null;
              if (bi != null) {
                   System.out.println("TooAwoo createGraphics2D: bi != null : " + " w= " + width + " h= " + height);
                   g2 = bi.createGraphics();
              } else {
                   System.out.println("TooAwoo createGraphics2D: bi == null g2 = (Graphics2D) g");
                   g2 = (Graphics2D) g;
              return g2; // return to ImageControls paint
         } // end createGraphics2D
         class ImageControls extends JPanel {
              public void paint(Graphics g) {
                   Dimension applet_window = getSize();
                   if (bImg == null) {
                        bImg = createBufferedImage(applet_window.width, applet_window.height, 2);
                   } else {
                        Graphics2D g2 = createGraphics2D(applet_window.width, applet_window.height, bImg, g);
                        g.drawImage( bImg , initOx , initOy , null );
                        g2.dispose();
                        //toolkit.sync();
                   } // end else (bImg != null)
              } // end paint
         } // end ImageControls
         public Dimension setPreferredSize() {
              Dimension applet_window = getSize();
              return applet_window;
         public String getString(String key) {
              return key;
         public BufferedImage createBufferedImage(int w, int h, int imgType) {          // called by ImageControls paint
              BufferedImage bi = null;
              if (imgType == 0) {
                   bi = (BufferedImage) getGraphicsConfiguration().createCompatibleImage(w, h);
              } else if (imgType > 0 && imgType < 14) {
                   bi = new BufferedImage(w, h, imgType);
              System.out.println("TooAwoo createBufferedImage: imgType= " + imgType + " w= " + w + " h= " + h);
              return bi;
         public static void addToGridBag(JPanel panel, Component comp,
                                                 int x, int y, int w, int h, double weightx, double weighty) {
              GridBagLayout gbl = (GridBagLayout) panel.getLayout();
              GridBagConstraints c = new GridBagConstraints();
              c.fill = GridBagConstraints.BOTH;
              c.anchor = GridBagConstraints.WEST;
              c.gridx = x;
              c.gridy = y;
              c.gridwidth = w;
              c.gridheight = h;
              c.weightx = weightx;
              c.weighty = weighty;
              panel.add(comp);
              gbl.setConstraints(comp, c);
         } // end addToGridBag
         protected static ImageIcon createImageIcon(String path) {                         // Returns an ImageIcon, or null if the path was invalid.
              java.net.URL imgURL = TooAwoo.class.getResource(path);
              if (imgURL != null) {
                   return new ImageIcon(imgURL);
              } else {
                   System.err.println("Couldn't find file: " + path);
                   return null;
         } // end createImageIcon
         private static void createAndShowGUI() {                                             // called by main
              JFrame frame = new JFrame("TooAwoo");                                             //Create and set up the window.
              // Make sure we have nice window decorations.
              frame.setDefaultLookAndFeelDecorated(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // Create and set up content pane.
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              JPanel masterPanel = new JPanel();
              frame.add("Center", masterPanel);
              // Display the window.
              frame.pack();
              frame.setSize(new Dimension( 1000 , 640 ));
              frame.setVisible(true);
         } // end createAndShowGUI
         public static void main(String s[]) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        createAndShowGUI();
         } // end main
         public void actionPerformed(ActionEvent e) {
              repaint(1024);
        public void stateChanged(ChangeEvent e) {
              repaint(1024);
         public void itemStateChanged(ItemEvent e) {
              Object obj = e.getSource();
              if ( obj == isMetric ) {
                   System.out.println("obj isMetric");
                //Turn it to metric.
                rowView.setIsMetric(true);
                columnView.setIsMetric(true);
                   picture.setMaxUnitIncrement(rowView.getIncrement());
            } else {
                System.out.println("obj isNotMetric");
                   //Turn it to inches.
                rowView.setIsMetric(false);
                columnView.setIsMetric(false);
                   picture.setMaxUnitIncrement(rowView.getIncrement());
         } // end itemStateChanged(ItemEvent e)
    } // end TooAwoo
    Next is ScrollablePicture.java
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class ScrollablePicture extends JLabel implements Scrollable {
        private int maxUnitIncrement = 1;
         private boolean missingPicture = false;
        public ScrollablePicture (ImageIcon imageIcon_, int m){                              //(BufferedImage bImg, int m)
            super(imageIcon_); // comment this line if bImg...
              if (imageIcon_ == null) { // change imageIcon_ to bImg if bImg...
                   missingPicture = true;
                   setText("No picture found.");
                   setHorizontalAlignment(CENTER);
                   setOpaque(true);
                   setBackground(Color.black);
              maxUnitIncrement = m;
        public Dimension getPreferredScrollableViewportSize() {
            return getPreferredSize();
        public int getScrollableUnitIncrement(Rectangle visibleRect,
                                              int orientation,
                                              int direction) {
            //Get the current position.
            int currentPosition = 0;
            if (orientation == SwingConstants.HORIZONTAL)
                currentPosition = visibleRect.x;
            else
                currentPosition = visibleRect.y;
            //Return the number of pixels between currentPosition
            //and the nearest tick mark in the indicated direction.
            if (direction < 0) {
                int newPosition = currentPosition -
                   (currentPosition / maxUnitIncrement) *
                   maxUnitIncrement;
                return (newPosition == 0) ? maxUnitIncrement : newPosition;
            } else {
                return ((currentPosition / maxUnitIncrement) + 1) *
                   maxUnitIncrement - currentPosition;
        public int getScrollableBlockIncrement(Rectangle visibleRect,
                                               int orientation,
                                               int direction) {
            if (orientation == SwingConstants.HORIZONTAL)
                return visibleRect.width - maxUnitIncrement;
            else
                return visibleRect.height - maxUnitIncrement;
        public boolean getScrollableTracksViewportWidth() {
            return false;
        public boolean getScrollableTracksViewportHeight() {
            return false;
        public void setMaxUnitIncrement(int pixels) {
            maxUnitIncrement = pixels;
    Next is Corner.java
    import java.awt.*;
    import javax.swing.*;
    public class Corner extends JComponent {
        protected void paintComponent(Graphics g) {
            g.setColor(new Color(230, 163, 4));
            g.fillRect(0, 0, getWidth(), getHeight());
    Next is Rule.java
    import java.awt.*;
    import javax.swing.*;
    public class Rule extends JComponent {
        public static final int INCH = Toolkit.getDefaultToolkit().
                getScreenResolution();
        public static final int HORIZONTAL = 0;
        public static final int VERTICAL = 1;
        public static final int SIZE = 30;
        public int orientation;
        public boolean isMetric;
        private int increment;
        private int units;
        public Rule(int o, boolean m) {
            orientation = o;
            isMetric = m;
            setIncrementAndUnits();
        public void setIsMetric(boolean isMetric) {
            this.isMetric = isMetric;
            setIncrementAndUnits();
            repaint();
        private void setIncrementAndUnits() {
            if (isMetric) {
                units = (int)((double)INCH / (double)2.54); // dots per centimeter
                increment = units;
            } else {
                units = INCH;
                increment = units / 2;
        public boolean isMetric() {
            return this.isMetric;
        public int getIncrement() {
            return increment;
        public void setPreferredHeight(int ph) {
            setPreferredSize(new Dimension(SIZE, ph));
        public void setPreferredWidth(int pw) {
            setPreferredSize(new Dimension(pw, SIZE));
        protected void paintComponent(Graphics g) {
            Rectangle drawHere = g.getClipBounds();
            // Fill clipping area with dirty brown/orange.
            g.setColor(new Color(230, 163, 4));
            g.fillRect(drawHere.x, drawHere.y, drawHere.width, drawHere.height);
            // Do the ruler labels in a small font that's black.
            g.setFont(new Font("SansSerif", Font.PLAIN, 10));
            g.setColor(Color.black);
            // Some vars we need.
            int end = 0;
            int start = 0;
            int tickLength = 0;
            String text = null;
            // Use clipping bounds to calculate first and last tick locations.
            if (orientation == HORIZONTAL) {
                start = (drawHere.x / increment) * increment;
                end = (((drawHere.x + drawHere.width) / increment) + 1)
                      * increment;
            } else {
                start = (drawHere.y / increment) * increment;
                end = (((drawHere.y + drawHere.height) / increment) + 1)
                      * increment;
            // Make a special case of 0 to display the number
            // within the rule and draw a units label.
            if (start == 0) {
                text = Integer.toString(0) + (isMetric ? " cm" : " in");
                tickLength = 8;//10;
                if (orientation == HORIZONTAL) {
                    g.drawLine(0, SIZE-1, 0, SIZE-tickLength-1);
                    g.drawString(text, 2, 21);
                } else {
                    g.drawLine(SIZE-1, 0, SIZE-tickLength-1, 0);
                    g.drawString(text, 9, 10);
                text = null;
                start = increment;
            // ticks and labels
            for (int i = start; i < end; i += increment) {
                if (i % units == 0)  {
                    tickLength = 7;//10;
                    text = Integer.toString(i/units);
                } else {
                    tickLength = 4;//7;
                    text = null;
                if (tickLength != 0) {
                    if (orientation == HORIZONTAL) {
                        g.drawLine(i, SIZE-1, i, SIZE-tickLength-1);
                        if (text != null)
                            g.drawString(text, i-3, 21);
                    } else {
                        g.drawLine(SIZE-1, i, SIZE-tickLength-1, i);
                        if (text != null)
                            g.drawString(text, 9, i+3);
    Here is TooAwoo.html
    <HTML>
    <HEAD>
    <TITLE>TooAwoo</TITLE>
    </HEAD>
    <BODY>
    <APPLET archive="TooAwoo.jar" code="TooAwoo" width=1024 height=800>
    Your browser does not support Java, so nothing is displayed.
    </APPLET>
    </BODY>
    </HTML>
    */Total number of lines: 486
    Weight: 15 199 bytes
    Total number of files: 5
    TooAwoo.java
    ScrollablePicture.java
    Corner.java
    Rule.java
    TooAwoo.html
    ... in that order in my code
    The major default is: I cannot have that BuffuredImage at the left of the screen if run using bImp at line 91 of TooAwoo.java.
    Minor bug: the JToggle button (inch/cm) does not fires-up correctly. Nothing change.
    Anyway feel free to fire at me if you believe its a good strategy. I will remain very positive to all comments and suggestions.
    Thanks.
    dimitryous r.

  • Edit Tab Order Bug??

    I've upgraded from CVI 8.1 to CVI 2010 a short while back, and while working on a project recently, I noticed that the Edit Tab Order functionality no longer seems to work properly.  I still have 8.1 installed on the same PC.  If I open an old project in 8.1 and edit tab order, everything works just fine.  I can set a value in the "Click to set" box and point to the control that I want to set and the value is applied.  However, if I do the same thing in CVI 2010, when clicking on a control that I want to set, the value is NOT set and the other control tab order values get all screwed up.  I've seen the issue on a 64bit Windows 7 Laptop as well as a 32bit Windows XP computer.
    Is this a known bug??  I haven't seen it mentioned anywhere.  Should it be reported someplace else?   This essentially makes the Tab Order functionality useless, and is a bit frustrating on a panel with a large number of controls.
    Thanks!

    I figured out my issue, and it is actually consistent in both v8.1 and 2010.  The issue is that I have a Decoration Frame around a group of controls.  When previously testing in v8.1, I did not have a frame around the controls.  That's why it worked. 
    So... Once a frame was inserted (in either version of CVI), any controls that the frame surrounded could no longer be selected in the Edit Tab Order window.  Selecting ANYWHERE inside the frame only selects the frame tab order and NOT any control inside the frame.  After a little trial and error, I found that this was related to the Z-Plane order of the frame.  The frame is a bit misleading in that all the controls are clearly visible inside, but the frame still lies ON TOP of them.  Once I selected the frame and "Arrange>Control ZPlane Order>Move to Back", I could then edit the tab order of the interior controls as expected in the Edit Tab Order window.
    Sorry for any confusion.  Hopefully my little snafu might help someone else at some point in the future.

  • Looking for "animate draw on video" effect

    I need to supply a client with an animated drawing effect on video.
    Actually it's a still frame- so hopefully that makes it easier.
    (He wants me to animate glasses and a moustache being drawn on a face)
    The effect seems fairly common.
    Is this something that is done in photoshop or after effects or
    is there a key frame, plug in for FCP?

    You could do this pretty easily in AE or Motion. This will describe how to do it in Motion:
    1.) Bring the frame in question into a "drawing" program: Illustrator or Photoshop. Draw your elements on top of your frame.
    2.) Import your background frame & the new drawing into Motion. Put them into their own individual groups.
    3.) Make a new group and use the "Bezier Tool" to draw lines (that Motion will call "Shapes") that hide your drawings. The lines should have no Fill & their outlines should be large enough to completely hide your drawings. You should 1 "shape" for every "stroke" of the drawing that needs to get revealed. This group probably needs to be on the top of your stack to see that you're hiding the drawing.
    4.) Apply the Behavior, Shape > Write On to each of your shapes. This is going to cause your strokes to grow into place. Play with timing to suit yourself.
    5.) Select the Group with your drawing: 'stache & glasses and go to the menu: Object > Add Image Mask. Make the top group, your written-on strokes, the mask for this drawing layer.
    Your drawing should now draw itself on. You may need to make your drawing with individual layers for the strokes to make the write-on process cleaner. I'll post some screen shots in a minute to better illustrate this all. It's actually much easier than all the verbiage may make it sound...

Maybe you are looking for