Adding Text to a Buffered Image

Hey
I am trying to add text to a bufferedimage image and have tried a couple of ways.
I cannot seem to get it to work propely though. Everytime i try, the text appears but the image appears inside the lettering of the text and not under it like i want it to.
Could someone please explain the best way of place text on TOP of an image as i am really stuck now :(
Thanks in advanced for any help

Basically paint your buffered image into a new BufferedImage and then paint in the new text on top.
Here's a demo.
import java.awt.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
import javax.swing.*;
public class BufferedImageTest
    public static void main(String[] args)
        ImageGenerator ig = new ImageGenerator();
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(ig.getOriginalImagePanel(), "North");
        f.getContentPane().add(ig.getTextPanel(), "South");
        f.setSize(400,640);
        f.setLocation(200,50);
        f.setVisible(true);
        f.getContentPane().add(ig.getNewImagePanel());
        f.validate();
        f.repaint();
class ImageGenerator
    JPanel originalPanel = new JPanel()
        public void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int w = getWidth();
            int h = getHeight();
            g2.setPaint(Color.blue);
            g2.fill(new Rectangle2D.Double(w/16, h/16, w*7/8, h*7/8));
            g2.setPaint(Color.yellow);
            g2.fill(new Rectangle2D.Double(w/8, h/8, w*3/4, h*3/4));
            g2.setPaint(Color.red);
            g2.fill(new Ellipse2D.Double(w/6, h/6, w*2/3, h*2/3));
            g2.setPaint(Color.green);
            g2.draw(new Line2D.Double(w/16, h/16, w*15/16, h*15/16));
    JPanel textPanel = new JPanel()
        Font font = new Font("lucida sans regular", Font.PLAIN, 32);
        String text = "A New Label";
        public void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setFont(font);
            FontRenderContext frc = g2.getFontRenderContext();
            LineMetrics lm = font.getLineMetrics(text, frc);
            float textWidth = (float)font.getStringBounds(text, frc).getWidth();
            int w = getWidth();
            int h = getHeight();
            float x = (w - textWidth)/2;
            float y = (h + lm.getHeight())/2 - lm.getDescent();
            g2.drawString(text, x, y);
    public ImageGenerator()
        originalPanel.setBackground(Color.white);
        originalPanel.setPreferredSize(new Dimension(300,200));
        textPanel.setOpaque(false);
        textPanel.setPreferredSize(new Dimension(300,200));
    private BufferedImage createNewImage()
        BufferedImage image = new BufferedImage(originalPanel.getWidth(),
                                                originalPanel.getHeight(),
                                                BufferedImage.TYPE_INT_RGB);
        Graphics2D g2 = image.createGraphics();
        originalPanel.paint(g2);
        textPanel.paint(g2);
        g2.dispose();
        return image;
    public JPanel getOriginalImagePanel()
        return originalPanel;
    public JPanel getTextPanel()
        return textPanel;
    public JPanel getNewImagePanel()
        JPanel panel = new JPanel()
            BufferedImage image = createNewImage();
            public void paintComponent(Graphics g)
                super.paintComponent(g);
                Graphics2D g2 = (Graphics2D)g;
                g2.drawImage(image, null, 0, 0);
        return panel;
}

Similar Messages

  • Adding Text To A Background Image

    Hi,
    I'm still very new to Dreamweaver, and would appreciate your insight. I've attached an image for reference. Green is for the banner/menu bar.
    In Photoshop, I sliced up a banner/background image combo, saved for web/devices, and imported it onto an html page in Dreamweaver. The bottom half was imported as a separate image. The code for which is:
    <tr>
         <td colspan="8"
                 <img src="image location" alt="" width="828" height="401"></td>
    </tr>
    Is there a way that I can add text to appear on top of the bottom half? Would I need to insert a div tag, or wrap that table row in one? Would it just be a matter of another table row, or an editable region?
    Thank you!

    Guild,
    Please do yourself a favor and DO NOT use APDivs for such a simple layout.
    See screenshot of an HTML page with Default CSS positioned layout and background-colors (no images needed).
    In Code View, copy and paste the following CSS and HTML code into a New blank HTML document.  You can edit colors in DW CSS properties panel.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <style type="text/css">
    body {
    font-family:Arial, Helvetica, sans-serif;
    font-size: 100%;
    text-align:center;
    background: silver;
    #wrapper {
    width: 900px; /**adjust in px or %**/
    margin: 0 auto;
    #header {
    background-color: #009933;
    color: #FFF;
    color: #FFF;
    padding: 1em;
    #mainContent {
    background-color:#CC3366;
    text-align: left;
    line-height: 1.5;
    padding: 1em;
    #footer {
    background-color:#FFF;
    color:#666;
    font-size: 0.85em;
    margin: 0;
    padding: 6px;
    </style>
    <body>
    <div id="wrapper">
    <div id="header">
    <h1>H1 heading goes here</h1>
    <h2>sub-heading here </h2>
    </div>  <!--end header -->
    <div id="mainContent">
    <h3>H3 heading goes here</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. In at leo massa, a tempus nunc? Phasellus ante diam, sodales ac sagittis id, feugiat ut ligula. Mauris ac massa erat, vel mattis justo. Pellentesque pretium egestas lacinia. Aliquam a ipsum nunc. Mauris molestie enim lacus. Pellentesque elit arcu, rhoncus id viverra non, pellentesque quis libero. Curabitur sed elementum mi. Curabitur quam ligula, ullamcorper facilisis mattis non, malesuada tempus nulla! In ac nisi in metus venenatis sollicitudin ut at leo. Mauris nec diam justo. Nulla venenatis posuere mollis. Praesent tincidunt magna eu ipsum mollis sed gravida ante placerat. Praesent fringilla placerat quam? Nulla et nisi libero. Aenean a egestas lectus. </p>
    <p>Quisque ut lacus nec augue convallis ultricies. Aliquam mollis dignissim feugiat. Vestibulum justo ipsum, dignissim quis scelerisque eget, cursus a magna. Curabitur laoreet ipsum at tellus tincidunt nec vulputate risus commodo. Suspendisse scelerisque sem nisl. Ut vitae mauris ac nibh scelerisque dictum. Etiam fringilla ligula consequat nibh rhoncus id semper dui fringilla? Nullam vitae ante odio, non venenatis arcu. In ac euismod dolor. Nulla facilisi. In mi sapien, sollicitudin eget imperdiet sed; rutrum sit amet lectus! Maecenas ut tellus risus. Mauris nec semper dui. Praesent mattis iaculis iaculis. Mauris fringilla lacus eget orci mollis id imperdiet arcu accumsan!
    </p>
    </div>  <!--end mainContent -->
    <div id="footer">
    <p>some footer text goes here</p>
    </div>   <!--end footer -->
    </div>   <!--end wrapper -->
    </body>  <!--end body -->
    </html>  <!--end document -->
    Good luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Adding Text to a Slideshow of images....

    Hi,
    I am still on iDVD 4.0.1 so could somebody please answer a couple of, hopefully, easy questions to help make my mind up about whether I should opt to buy the new iLife package (currently on version 06).
    I have created a slideshow and want to add text to each of the photographs, it is a family album so I want to add different text to each individual photo i.e. Auntie Marge 1964 etc....There doesn't seem to be a way of doing this in this version?
    I have burnt my first project to DVD but when I view it on the TV I am getting a warping effect on a number of images in the slideshow, any ideas why?
    So in conclusion, is it worth my while upgrading to the new iLife06 and will it include either a fix or a new feature that will help in the above queries?
    Thanks,
    Will.

    Hello Will,
    The best way to do what you want to do is to use iPhoto to create a slideshow, expanding the image viewing time to 5 seconds + for each image with or without Ken Burns and export it to Quicktime. Then import the Quicktime movie into iMovie. Next step is to split the clip at the playhead of each individual image and add a title with the 'over black' deselected. The subtitle option works well for this. It takes a bit of time to do, but there really is no quick way to do what you want to do. There are various plugins for iMovie as well and some do allow you to put text over batches of images, although I would guess you want to put different text over each image. I have done it a few times and it does come up really well. You can't do it with an iDVD slideshow.

  • Adding Text to a pre-defined Image

    I have an Image that is within a JInternalFrame and I am wanting to add text on top of the Image. I have tried using the getGraphics().drawString() method, however this requires that the image in question have been created with the create(w,h) constructor, where as my image is created using an MemoryImageSource.
    Does anyone have any ideas as to how I could add text to a predefined Image? Perhaps using some sort of transparent Pane/Panel may work?
    Cheers
    J

    Here's the code I used to solve my problem, for those that may be interested.
    BufferedImage bf = new BufferedImage(imageWidth,imageHeight,
    BufferedImage.TYPE_3BYTE_BGR);
    G = bf.createGraphics();
    G.drawImage(getImage(),0,0,null);     //Get the original Image
    G.setColor(Color.red);
    //Draw a rectangle surrounding the object
    G.drawRect((od.getBBLeft()-1),(od.getBBTop()-1),
    (od.getObjectWidth()+2),(od.getObjectHeight()+2));
    //Add the object text to the image
    G.drawString(text,(od.getBBLeft()-1),(od.getBBBottom()+20));
    getPixels(bf);      
    image.flush();     //Clear the presently displayed images chache
    setImage(bf);     //Define the new image for the JInternalFrame
    repaint();     //Call the repaint methods for this JInternalFrame
    Cheers
    J

  • Adding Alt text to prducts catalog images...

    I cannot find information on how to add Alt Text to my product images in the catalogs. Can anyone help?
    Thanks,
    Andre
    www.e-speakers.com

    If you use {tag_largeimage_path} that gives you the raw URL of the large image for example and you can then set this up in your own html with alt tag of say the product name or title.

  • Adding text under images CS6

    I have various images inside an .indd file I used the rectangle frame tool , sized then placed images inside. I now need to have captions ( text )underneath the images within the rectangled box. I can't seem to get the text in there which tells me there is a differnt procedure to do thi.
    Any help?
    R

    You can't have text and images in the same frame without first grouping
    them and then copy/pasting them into another frame. You now need to turn
    off the text wrap on the image or the caption won't show up.
    Have you made any effort to learn about the workings of InDesign? I
    don't mean to sound cold but this is incredibly basic stuff.
    I strongly recommend that you buy Sandee Cohen's Visual Quick Start
    Guide: http://amzn.to/13qYBT7
    A subscription to Lynda.com would help you, too. This link will get you
    a free one week subscription: http://bit.ly/RS0GXs

  • Adding Text to a photo...Need help

    I'm new to Adobe Photoshop Elements 7. I'm following the instructions for adding text to a photo, but I can't see what I'm typing. I can see the cursur, but nothing else. I can see the text in the Layer, but not on the photo. Please help.

    Check the font size in the options bar. If it's really small you won't see it.
    Look in your layer's palette and insure your text is in a layer located above the photo in the stack.
    You might also check your image's resolution in the Image Size dialog. I've seen a couple of posts where someone changes the resolution to 1 with resample turned off...then can't see the text because it's too small even when they have large numbers inserted in the font size box.

  • Adding text to a photo in iphoto

    How do you add text to a smart album photo?  Also, when syncing to my iphone, I want the text to appear.  I am building a tropical plant field guide.

    iPhoto has no capability of adding text onto an image.  For that you'll need a 3rd party image editor setup as the  external editor in iPhoto.
    Some Image Editors that support  layers:
    Photoshop Elements 11 for Mac - $79
    Rainbow Painter - $30
    Imagerie - $38
    Acorn - $50
    Pixelmator - $60 
    Seashore - Free
    Portraits and Prints - Free
    GIMP for Mac - Free
    OT

  • Adding text to photo

    I would like to add text to photos - that is have the text appear on the photo itself. Can I do this with iphoto?
    Thanks, M.

    Not easily with iPhoto only, but Martin S. has directions for doing so here:
    http://simnet.is/klipklap/iphoto/adding-text/
    Rather easier is to use an external editor for the job: starting with free and working up:
    Seashore
    Graphic Coverter
    Acorn
    Photoshop Elements
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • Adding Text

    Can anyone help me out on adding text to an image. I have followed the instructions in both books and videos on how to add text (using the text tool) and when I get to the point of typing text in, it doesn't go 'in'. The box that I assume it should show up in just stares at me - blank. What am I missing?

    David,
    Also, there are basically two types of Text: Paragraph Text, where you first drag a Text Box, and what I'll call "Open Text," 'cause I'm having a brain cramp and cannot come up with the proper syntax. There are some differences in the behavior of the two. The manual (do they still ship those, or is F1 the only recourse nowadays?), should make the distinctions clear.
    Also, when Text does not behave, as you think it should, look at your Layers Palette. Since about version 5, PS creates a Text Layer, when you start using the Text Tool. Make sure that you are in the correct Layer. If it doesn't seem to be working still, Dbl-click the icon with the T in the correct Layer. You should see your Text selected/highlighted. With the Text Tool, you can edit, or add to from there. This gets you on the correct Layer. If you first just click with the Text Tool, you are most likely creating a new Text Layer, which is not what you want, if you intend to edit, or add to existing Text. Always keep the Layers Palette open and in view. When things don't work, check to see just which Layer is active. That is NOT just for Text, but for almost everything in PS.
    Good luck, and let us know how it goes. I also like the "Classroom in a Book" series from Adobe Press. They step you though many aspects of PS in little "projects." They are fun, expose you to things that you might not find for a bit, and are highly informative.
    Hunt

  • HI Please Help me with Zoom of a buffered image

    Hi All,
    Please help,
    I want to zoom the buffered image using Affine Transforms, the code shown below can rotate the buffered image now how to zoom the same buffered image using Affine Transforms.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    public class RotationBounds extends JPanel implements ActionListener
        BufferedImage image;
        AffineTransform at = new AffineTransform();
        Rectangle2D.Double bounds = new Rectangle2D.Double();
        double theta = 0;
        double thetaInc = Math.PI / 2;
        public void actionPerformed(ActionEvent e)
            theta += thetaInc;
            setTransform();
            repaint();
        private void setTransform()
            int iw = image.getWidth();
            int ih = image.getHeight();
            double cos = Math.abs(Math.cos(theta));
            double sin = Math.abs(Math.sin(theta));
            double width = iw * cos + ih * sin;
            double height = ih * cos + iw * sin;
            double x = (getWidth() - iw) / 2;
            double y = (getHeight() - ih) / 2;
            at.setToTranslation(x, y);
            at.rotate(theta, iw / 2.0, ih / 2.0);
            x = (getWidth() - width) / 2;
            y = (getHeight() - height) / 2;
            // Set bounding rectangle that will frame the image rotated
            // with this transform. Use this width and height to make a
            // new BuffferedImage that will hold this rotated image.
            // AffineTransformOp doesn't have this size information in
            // the translation/rotation transform it receives.
            bounds.setFrame(x - 1, y - 1, width + 1, height + 1);
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D) g;
            setBackground(Color.gray);
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);
            if (image == null)
                initImage();
            g2.drawRenderedImage(image, at);
            // g2.setPaint(Color.blue);
            g2.draw(bounds);
            g2.setPaint(Color.green.darker());
            g2.fill(new Ellipse2D.Double(getWidth() / 2 - 2,
                getHeight() / 2 - 2, 4, 4));
        private void initImage()
            int w = 360, h = 300;
            image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = image.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(new Color(220, 240, 240));
            g2.fillRect(0, 0, w, h);
            g2.setPaint(Color.red);
            g2.drawString("Text for test", 50, 50);
            g2.drawRect(0, 0, w - 1, h - 1);
            g2.dispose();
            g2.setTransform(at);
    //        setTransform();
        private JPanel getLast()
            JButton rotateButton = new JButton("Rotate");
            rotateButton.addActionListener(this);
             JButton zoomButton = new JButton("Zoom");
            JPanel panel = new JPanel();
            panel.add(rotateButton);
            panel.add(zoomButton);
            return panel;
        public static void main(String[] args)
            RotationBounds test = new RotationBounds();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test);
            f.getContentPane().add(test.getLast(), "North");
            f.setSize(400, 400);
            f.setLocation(0, 0);
            f.setVisible(true);
    }Message was edited by:
    New_to_Java

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.util.Hashtable;
    import javax.swing.*;
    import javax.swing.event.*;
    public class RotationZoom extends JPanel {
        AffineTransform at = new AffineTransform();
        Point2D.Double imageLoc = new Point2D.Double(100.0, 50.0);
        Rectangle2D.Double bounds = new Rectangle2D.Double();
        BufferedImage image;
        double theta = 0;
        double scale = 1.0;
        final int PAD = 20;
        public RotationZoom() {
            initImage();
        public void addNotify() {
            super.addNotify();
            setTransform();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                RenderingHints.VALUE_INTERPOLATION_BICUBIC);
            g2.drawRenderedImage(image, at);
            g2.setPaint(Color.red);
            g2.draw(bounds);
        public Dimension getPreferredSize() {
            return new Dimension((int)(imageLoc.x + Math.ceil(bounds.width))  + PAD,
                                 (int)(imageLoc.y + Math.ceil(bounds.height)) + PAD);
        private void update() {
            setTransform();
            revalidate();
            repaint();
        private void setTransform() {
            int iw = image.getWidth();
            int ih = image.getHeight();
            double cos = Math.abs(Math.cos(theta));
            double sin = Math.abs(Math.sin(theta));
            double width  = iw*cos + ih*sin;
            double height = ih*cos + iw*sin;
            at.setToTranslation(imageLoc.x, imageLoc.y);
            at.rotate(theta, scale*iw/2.0, scale*ih/2.0);
            at.scale(scale, scale);
            double x = imageLoc.x - scale*(width - iw)/2.0;
            double y = imageLoc.y - scale*(height - ih)/2.0;
            bounds.setFrame(x, y, scale*width, scale*height);
        private void initImage() {
            int w = 240, h = 180;
            int type = BufferedImage.TYPE_INT_RGB;
            image = new BufferedImage(w,h,type);
            Graphics2D g2 = image.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setBackground(new Color(220,220,240));
            g2.clearRect(0,0,w,h);
            g2.setPaint(Color.red);
            g2.draw(new CubicCurve2D.Double(0, h, w*4/3.0, h/4.0,
                                            -w/3.0, h/4.0, w, h));
            g2.setPaint(Color.green.darker());
            g2.draw(new Rectangle2D.Double(w/3.0, h/3.0, w/3.0, h/3.0));
            g2.dispose();
        private JPanel getControls() {
            JSlider rotateSlider = new JSlider(-180, 180, 0);
            rotateSlider.setMajorTickSpacing(30);
            rotateSlider.setMinorTickSpacing(10);
            rotateSlider.setPaintTicks(true);
            rotateSlider.setPaintLabels(true);
            rotateSlider.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    int value = ((JSlider)e.getSource()).getValue();
                    theta = Math.toRadians(value);
                    update();
            rotateSlider.setBorder(BorderFactory.createTitledBorder("theta"));
            int min = 50, max = 200, inc = 25;
            JSlider zoomSlider = new JSlider(min, max, 100);
            zoomSlider.setMajorTickSpacing(inc);
            zoomSlider.setMinorTickSpacing(5);
            zoomSlider.setPaintTicks(true);
            zoomSlider.setLabelTable(getLabelTable(min, max, inc));
            zoomSlider.setPaintLabels(true);
            zoomSlider.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    int value = ((JSlider)e.getSource()).getValue();
                    scale = value/100.0;
                    update();
            zoomSlider.setBorder(BorderFactory.createTitledBorder("scale"));
            JPanel panel = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.fill = GridBagConstraints.HORIZONTAL;
            gbc.gridwidth = GridBagConstraints.REMAINDER;
            panel.add(rotateSlider, gbc);
            panel.add(zoomSlider, gbc);
            return panel;
        private Hashtable getLabelTable(int min, int max, int inc) {
            Hashtable<Integer,JComponent> table = new Hashtable<Integer,JComponent>();
            for(int j = min; j <= max; j += inc) {
                JLabel label = new JLabel(String.format("%.2f", j/100.0));
                table.put(new Integer(j), label);
            return table;
        public static void main(String[] args) {
            RotationZoom test = new RotationZoom();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(test));
            f.getContentPane().add(test.getControls(), "Last");
            f.setSize(500,500);
            f.setLocation(200,100);
            f.setVisible(true);
    }

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • I'm adding text to a photo.. Trying to get an S to lay down

    I'm adding text to a photo and can't get an S to lay down?

    I'm guessing on what you are trying to do, to some extent, but see if this helps.  Your photograph will have a horizon, and perspective.  For instance, if there are any buildings in the image, lines drawn through the top and bottom edges of the building, and extended to the horizon, will always intersect at the same point.  If you lay down some guides as shown in this illustration, and overlay some perspective lines with a 1 pixel line, then use the resulting box to Free transform the letter S to.
    It is _much_ easier if you Rasterize the text layer, because that will cause the Free Transform bounding box and handles, to fit tightly around the text.  Otherwise the bounding box will be larger than the text to include descenders and risers for the font used.
    So with guides and guide lines in place, and the text rasterized, use Free Transform, and hold down the Ctrl (Cmd) key will dragging the corner handles to the intersect points.
    In the illustration I have made a nice simple concentric perspective, but that probably won't be the case in your image.  But if you use clues from the image, you will be able to work out its true perspective.  In fact I rarely resort to using guides, and just do it by eye.
    A little tip when doing this is to make the object a Smart Object before using Free Transform.  The reason is if you decide to tweak the perspective and use FT a second time, with an SO layer the handles will still be in the corners.  A normal layer will now have the FT handles square to the document edges, which makes it much more difficult to refine the shape.
    BTW  Thanks for asking a proper, interesting, question about using Photoshop, as opposed to the usual 'My dog has eaten my serial number' posts.

  • Does Added Text Resolution Match Photo Resolution

    I am adding text to some screen grabs from an old 8mm movie.  The movie resolution is not very high.  When I add text to the screen shots, they are very low resolution.
    I am assuming that the text resolution is simply matching that of the screen grab.  Is there anyway to set the text resolution different from that of the photo from the screen capture?

    I will piggy back on this discussion.  I have discovered that, although the image resolution is inconsequential when sizing images by pixel dimensions, it still matters if you decide to add copyright information with the type tool.
    e.g. I have received images from several people, all sized to 1024 pixels in width, but I wanted to add their names to the front of the images before putting the images into a slideshow.  I quickly discovered that, although the images are of identical size when viewed, the names applied vary in size according to the resolution of the image.
    Since different makes of cameras assign a different resolution to images taken with that camera, I needed to change the resolution of the images to all be the same before I could add names that appear as the same size.  This came as a surprise to me.
    Mary Lou

  • Problems adding Text track to .mov file

    I am having a problem adding a text track to a quicktime file. I want to overlay text onto a PAL DV file. The original file size is 720 x 576 but when I add the text (as per the instructions in the QT Player Help) instead of having the text overlaid, it appears next to the Video image and gives me an image size of 1325 x 577. If I now export this as a "PAL DV" file, QT Player shows the whole 1325x577 frame whilst FCP accepts the file but shows only the video part of the frame.
    I'm running QT 7.4.5 on a MacBook Pro with OS10.5.2. I have tried re-installing QT without success - this maybe because the Preferences seem to stick when upgrading/re-installing (?)
    Any thoughts, help or, better still, a definitive answer to my problem would be most welcome.

    Use the Movie Properties window to size your added text track to match the 720 width.
    For viewing a DVD on a TV size it even smaller (700) and set an offset value of 10 pixels so your text doesn't get cut off during playback.

Maybe you are looking for