Centering text onto an image.

How do you do it?
For example
g.drawImage(image, x, y, Graphics.HCENTER | Graphics.VCENTER);
g.drawString("text", x, y, Graphics.HCENTER | Graphics.BOTTOM);does not work, I could try all different variations of positions; Top, Bottom, Vcenter, Hcenter for both graphics and text and the text still won't center onto the image, absolutely centered.
Of course if Vcenter would work for text it'd probably do the job but that of course isn't allowed, in order for me to work around this at the moment I have to add a number to drawstring which looks like this.
g.drawString("text", x, y+textAdjust, Graphics.HCENTER | Graphics.BOTTOM);Of course this is useless if ported onto another phone with a different screen size.
Any help would be apreciated thanks.
Edited by: GLGunblade on Jul 27, 2010 7:41 AM

Though before I go changing every image in my code (It's a lot of images), is there no way to just alter text placement or does it have to be the background image to fit the text?Not sure what you mean here... What do you mean by changing every image?
This simple calculation I have pasted in my previous post lets you position both text and image, so that their centers are aligned, which I think is what you want to achieve.
All you have to do is to establish the height of the image and the height of the text every time you paint them, which is just a matter of calling some APIs.
Daniel

Similar Messages

  • Trying to overlay text onto images and save them.

    What I want: I have a computer running the media in my car and I want to hook up a camera to it that'll record when the computer is running and overlay the GPS speed onto the video for later viewing.
    What I got: I have the following piece of code that saves a series of .jpg images at a specified frame rate and a separate Java application that puts them together into a .mov file to view later. I couldn't find anything to record the straight video so if you have any links for that, please point me. But for now I'll settle for doing it this way and I'm not too concerned with the GPS speed NMEA parsing for now, I'll just use a static speed label until I get the overlaying working.
    What I need: I need to know what to plug into the speedOverlay() method in order to grab the image and put the speed on top of it before saving it and moving to the next image. Any ideas?
    Code:
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.sun.image.codec.jpeg.JPEGEncodeParam;
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    import com.sun.media.sound.Toolkit;
    import javax.imageio.ImageIO;
    import javax.media.*;
    import javax.media.control.FrameGrabbingControl;
    import javax.media.format.VideoFormat;
    import javax.media.util.BufferToImage;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JTextField;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Panel;
    import java.awt.Shape;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.font.TextLayout;
    import java.awt.geom.AffineTransform;
    import java.awt.image.BufferedImage;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.Timer;
    import java.util.TimerTask;
    public class SwingCapture1 extends Panel implements Runnable, ActionListener
         private static final long serialVersionUID = 1L;
         public static Player player = null;
         public CaptureDeviceInfo di = null;
         public MediaLocator ml = null;
         public JButton start = new JButton("START");
         public JButton stop = new JButton ("STOP NOW");
         public JLabel frequencyLabel = new JLabel("Frequency:");
         public JTextField frequencyInputField = new JTextField(5);
         public JLabel framerateLabel = new JLabel("Framerate: ");
         public JTextField framerateInputField = new JTextField(5);
         public JLabel timerLabel = new JLabel("Timer: ");
         public JTextField timerInputField = new JTextField(5);
         public JPanel southPanel = new JPanel();
         public static Buffer buf = null;
         public static Image img = null;
         public VideoFormat vf = null;
         public static BufferToImage btoi = null;
         public static ImagePanel imgpanel = null;
         public static Timer timer = new Timer();
         static int theFrameRate = 0;
         static int theTimeLength = 0;
         static int i = 0;
         static int interval = 0;
         int count = 0;
         static int timeLength = 0;
         static String filePrefix = "";
         static String imagesDirectory = "c:\\images\\";
         static boolean timerBoolean = true;
         Thread capThread;
         Toolkit toolkit;
         public SwingCapture1()
              setLayout(new BorderLayout());
    //          setSize(640, 480);
              imgpanel = new ImagePanel();
              start.addActionListener(this);
              final String str = "vfw:Microsoft WDM Image Capture (Win32):0";
              di = CaptureDeviceManager.getDevice(str);
              ml = new MediaLocator(str);
              try
                   player = Manager.createRealizedPlayer(ml);
                   player.start();
                   Component comp;
                   if ((comp = player.getVisualComponent()) != null)
                        add(comp, BorderLayout.LINE_START);
    //               add(capture);
                   add(imgpanel, BorderLayout.LINE_END);
                   add(southPanel, BorderLayout.SOUTH);
                   southPanel.add(framerateLabel);
                   southPanel.add(framerateInputField);
                   southPanel.add(timerLabel);
                   southPanel.add(timerInputField);
                   southPanel.add(start);
                   southPanel.add(stop);
              catch (final Exception e)
                   System.out.println("ERROR 1");
                   e.printStackTrace();
         public static void playerclose()
              player.close();
              player.deallocate();
         public void actionPerformed(final ActionEvent e)
              final JComponent c = (JComponent) e.getSource();
              if (c == start)
    //               snapPicture();
                   theFrameRate = Integer.parseInt(framerateInputField.getText());
                   theTimeLength = Integer.parseInt(timerInputField.getText());
                   startCapture(theFrameRate, theTimeLength);
              if (c == stop)
                   timerBoolean = false;
         public void startCapture(final int framerate, final int timeLength)
              interval = 1000 / framerate;
              // Start timer.
              timer.scheduleAtFixedRate(new TimerTask ()
                   public void run()
                        System.out.println("SNAP");
                        snapPicture();
                        count++;
                        if (count >= timeLength * framerate)
                             this.cancel();
              }, 1000, interval);
         public static void snapPicture()
              final FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
              buf = fgc.grabFrame(); // Convert it to an image
              btoi = new BufferToImage((VideoFormat) buf.getFormat());
              img = btoi.createImage(buf); // show the image
              imgpanel.setImage(img); // save image
              // saveJPG(img, "c:\\java\\Tomcat\\webapps\\loadimage\\main.jpg");
              i++;
              speedOverlay(img);
              saveJPG(img, imagesDirectory + filePrefix + i + ".jpg");
         public static void speedOverlay(Image img)
         public static void saveJPG(final Image img, final String s)
              final BufferedImage bi = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
              final Graphics2D g2 = bi.createGraphics();
              g2.drawImage(img, null, null);
              FileOutputStream out = null;
              try
                   out = new FileOutputStream(s);
              catch (final java.io.FileNotFoundException io)
                   System.out.println("ERROR 2");
                   System.out.println("File Not Found");
              final JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
              final JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
              param.setQuality(0.5f, false);
              encoder.setJPEGEncodeParam(param);
              try
                   encoder.encode(bi);
                   out.close();
              catch (final java.io.IOException io)
                   System.out.println("ERROR 3");
                   System.out.println("IOException");
         public void start()
              if (capThread == null)
                   capThread = new Thread(this, "Capture Thread");
                   capThread.start();
         public Image getFrameImage()
              // Grab a frame
              final FrameGrabbingControl fgc = (FrameGrabbingControl)
              player.getControl("javax.media.control.FrameGrabbingControl");
              buf = fgc.grabFrame();
              // Convert it to an image
              btoi = new BufferToImage((VideoFormat)buf.getFormat());
              return btoi.createImage(buf);
         @Override
         public void run() {
              // TODO Auto-generated method stub
    }

    Sorry guys, I haven't looked at your links yet but I will, once I get some time to sit down and code again. I just wanted to provide this piece of code that uses the Graphics2d you're talking about to overlay text onto an image but I haven't been able to plug it into my code at all. If you're links answer the question, I'm sorry, just providing it until I can actually sit down and spend time on the research you've given me. Thanks.
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import java.text.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class WaterMark {
        public static void main(String[] args) throws IOException {
             String speed = "50";
            URL url = new URL("file:c:\\images\\1.jpg");
            BufferedImage im = ImageIO.read(url);
            String text = speed + " Km/H";
            Graphics2D g = im.createGraphics();
    //        g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
    //        g.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
    //        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g.setFont(new Font("Lucida Bright", Font.ITALIC, 40));
    //        g.rotate(-Math.PI/4, im.getWidth()/2, im.getHeight()/2);
            TextLayout tl = new TextLayout(text, g.getFont(), g.getFontRenderContext());
    //        Rectangle2D bounds = tl.getBounds();
    //        double x = (im.getWidth()-bounds.getWidth())/2 - bounds.getX();
    //        double y = (im.getHeight()-bounds.getHeight())/2 - bounds.getY();
            double x = 10;
            double y = 50;
            Shape outline = tl.getOutline(AffineTransform.getTranslateInstance(x+2, y+1));
    //        g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.3f));
            g.setPaint(Color.BLACK);
            g.draw(outline);
    //        g.setPaint(new GradientPaint(0, 0, Color.WHITE, 30, 20, new Color(128,128,255), true));
            tl.draw(g, (float)x, (float)y);
            g.dispose();
            display(im);
        public static void display(BufferedImage image) {
            JFrame f = new JFrame("WaterMark");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JLabel(new ImageIcon(image)));
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Text block as image -- should I care?

    It was pointed out to me that most of the text on my site is an image, rather than lines of text. All of the text on my site was typed onto the site into text blocks, and none of it was cut and pasted. I did use Garamond for the font.
    A few threads have covered this topic, which I have read.
    Two of those blocks of text-as-image are on my home page and the text in those blocks appears in Google (on the listing of the site on the first "search result" -- or whatever it is called -- page).
    Doesn't this mean that the text in those "text-as-image blocks" (sorry for all the quote marks, but I don't know the real names of these things) are indeed searchable by google, even if they are images rather than lines of text?
    I have tried cutting and pasting the text into TextEdit and then repasting the text back but that didn't solve the problem.
    So:
    1. Does any of this really matter to the search engines and the ability of people to find text on my pages? Or for some weird reason does the home page act differently than the other pages?
    2. Does anyone have a consistent solution to this problem?
    3. Is this something that Apple may think significant enough to have already fixed for the next version -- which I hope is out in a couple of months?
    But mainly, should I even care?
    Thanks!
    Mark

    1. Does any of this really matter to the search
    engines and the ability of people to find text on my
    pages? Or for some weird reason does the home page
    act differently than the other pages?
    No and no. It sounds like your page is already coming up in the search results...graphic or text? It doesn't matter.
    2. Does anyone have a consistent solution to this
    problem?
    Not sure that it is a problem that needs fixing.
    3. Is this something that Apple may think
    significant enough to have already fixed for the next
    version -- which I hope is out in a couple of
    months?
    Again, I doubt that Apple sees it as a problem. iWeb converts text into an image for a reason.... your happiness. Most people would probably want to have a webpage that looks the way it is supposed to look (the way they want it to look). Most people probably don't care about text converted to image as long as it looks the way they expect it to look. This is why iWeb does the text to graphic conversion....to ensure uniform and consistent rendering of the text on the page. I think many, many more people would be upset if iWeb allowed them to put different fonts and text effects on a page and then left it up to a browser to determine how those fonts and effects were to be rendered.
    But mainly, should I even care?
    I think in the grand scheme of things, you shouldn't care. But that's just my humble opinion.

  • Aperture newbie, is it possible to overlay text onto a photo?

    Aperture newbie, is it possible to overlay text onto a photo?

    Not from Aperture. But there is a free plugin named BorderFX. With this tool you can add text to photos easily.
    The option of BorderFX are:
    Add multiple borders.
    Borders can be bevelled, or shaded to create more realistic frames.
    Add Titles, Copyright & Metadata.
    Add a Watermark to your images.
    Save images back into the Aperture Library, using the BorderFX Edit plugin.
    Position text anywhere on the photo.
    Add any number of text boxes to the photo.
    Support for ColorSync and ICC profiles.
    Aperture 3, 64-bit support.

  • HTMLEditorKit Centering Text

    Hello,
    I am writing a basic html editor which uses a textPane and java's HTMLEditorKit. The program allows the html to be saved.
    At the moment the text can only be written in a row by row form. And I would like to add the option of centering text, and images Which could be switch on and off, suchas in Microsoft's word.
    Could anyone provide an example of how to achieve this, or over some guidance.
    Thank you

    Thanks,
    I had a look at the site, though I could not find the answer, to how to use the java tools StyleSheet HTMLDocument and HTMLEditorKit kit. And allow the user to center text and images within a textpane, which would add the center tag to the HTMLDocument which contains the html template.
    Could you possibly advice further?

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • Text jobs with images - printer cancels

    When I print a text document with images the printer stops printing and cancels the print job when it starts to print any image.
    Help
    This question was solved.
    View Solution.

    Hey @sudiegal!
    Thanks for posting on the HP Forums!
    I would be happy to provide some suggestions that may resolve the issue.  I can see that the printer cancels the jobs when you add a photo to you text document.  The first thing I suggest is to remove the printer by resetting the print system.  After the printer is removed re-add the printer and try printing the document again. 
    To reset the printing system:
    1. Click the Apple icon at the top left of the computer
    2. Click System Preferences
    3. Click Printers and Scanners
    4. Hold down the "control" key on the keyboard and click with the mouse in the white space bellow the printer
    5. Click reset printing system dropdown
    6. It may ask for Mac ID and will color wheel for a moment until the printer is removed
    To re-add the printer:
    1. Click the Apple icon at the top left of the computer
    2. Click System Preferences
    3. Click Printers and Scanners
    4. Click the plus (+) icon under the printers list
    5. Select your printer
    6. Choose HP ENVY 7640 series in the dropdown next to "use" or "print using"
    7. Click add
    Please post back and let me know if this works out for you!
    Cbert
    I work on behalf of HP.
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" at the bottom of this post to say “Thanks” for helping!

  • How do I add text to an image?

    I have purchased a template and imported it to Photoshop. I then sliced the template into sections, saved it for web and opened the index file in dreamweaver. My questions is, how do I add text to the images? I want to add the text content, within the boxes on the template, but because they are exported as images from Photshop I can't seem to do it...So let's say there is a box in the middle of the template and I want it to say, Services at the top and below that have a little information about the services offered with a "read more" button at the bottom. I have exported the template out of photoshop with text added and with the boxes empty. I tried to add the text in dreamweaver but couldn't. When I export the sliced template out of photoshop with the text already included, it does show up in Dreamweaver, however it is not in html and I would like it to be for SEO purposes. Forgive me if this question is silly or already answered, I have looked everywhere and couldn't find the answer.
    Thanks in advance to anyone that can help.

    Hi,
    I prefer to use tables for that. For example (First of all you have to store this new file):
    <!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=utf-8" />
    <title>AddedText</title>
    </head>
    <body>
    <table width="40%" border="4">
      <tr>
        <td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
      </tr>
      <tr>
        <td align="center" valign="top"><div align="center"><img src="yourPicture.jpg" alt="image 01" width="127" height="33" /></div></td>
      </tr>
      <tr>
        <td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
      </tr>
    </table>
    </body>
    </html>
    Here I took a table with only one column, you can modify my choice.
    There is so too a possibility to use a complete flow text around a picture. If you like that, please give me a shout.
    About the story "hotspots" look here where I tried to give an answer a short while ago: http://forums.adobe.com/message/2700306#2700306
    Hans-G.

  • Dynamic Text in Flash/Image

    Hi All,
    I cant find any simple tutorials, can anyone help me and
    explain how to very simply, display one variable of text from a
    database as flash format (or a type of dynamic image)?
    Using CS3, and ColdFusion. I'm playing games with it and
    think i'm just name the variable wrong either in a flash file or cf
    page. But anyway, any simple method to dynamically display text as
    an image will work.... please help.
    Thx,
    Mike

    probably the simplest way will be passing your text to your
    flash movie
    as the movie url's query string variable (in the
    [object]/[embed] html
    tags). inside the flash movie set a dynamic text box to
    display the
    passed variable:
    if you google "pass variable to flash" you will see a lot of
    examples of
    code involved. just make sure your flash movie is large
    enough to
    display all passed text, and the passed text is url-encoded.
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Search text in FXZ images

    Hi all
    I want to develop a piece of code which will search the text in FXZ images in javafx which is similar to the following program
    http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html
    which is in swing and searching in a text of filenow i need just like this functionality but using FXZ images not plain text
    any one have idea then please post here

    Thanks Pavel.Benes
    as you said
    use internal API from fxdloader to open content files. It is possible - however completely unsupported and with high probability also not backward compatible.i am using fxdloader
    and i was tried something like
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.fxd.FXDLoader;
    import javafx.scene.Group;
    import javafx.ext.swing.SwingTextField;
    import javafx.ext.swing.SwingButton;
    import java.lang.Void;
    import javafx.scene.Node;
    var myScene: Scene;
    var fxdContent = FXDLoader.loadContent("{__DIR__}images/12_2008_123-7.fxz");
    var RootGroup = fxdContent.getRoot();  //root node
    var GroupA = RootGroup.content as Group[];  //first level siblings
    var rootsize=sizeof GroupA;                 //size of first level siblings
    var textarray = GroupA[0].content;          //content of first level first node
    var newtextarray: Text[] = for (i in textarray where i instanceof Text) {
                i as Text
    //textfield to input text
    var inputtext = SwingTextField {
                editable: true
                translateY: 10
                columns: 20
                text: "Enter Text to search"
    //search button
    var search = SwingButton {
                text: "Search"
                translateX: inputtext.boundsInLocal.maxX
                translateY: 10
                action: function (): Void {
                     var tex = bind inputtext.text;
                    for (i in newtextarray) {
                    if (i.content.contains("{tex}")) {
                    i.underline = not i.underline;
                           }//if
                    i
                    }//for
                    delete RootGroup from myScene.content;
                    insert RootGroup before myScene.content[0] ;
    //now the stage
    Stage {
        title: "Application title"
        scene: myScene = Scene {
            content: [
                RootGroup,
                inputtext,
                search,
    }this is the code i have written but this code have some drawbacks like
    0)It is not highlighting but underling the text and that too whole text screenshot is [http://lh5.ggpht.com/_XZ5lTObJ3ZY/S5XmNL2TqXI/AAAAAAAABac/z5IS6yjXjyE/s512/1.jpg]
    1)it is particular to one particular FXZ image which is having Text nodes at first level first node(which is a Group)
    2)after first search when you make second time search with another key it is not removing previous searched textnow what changes i have to make to this code for avoiding the above drawbacks please help

  • Exporting text as an image from Photoshop

    I am using a non web safe font and so I am exporting the body of text as an image from Photoshop. Canvas size 900 x 600 pix 72 dpi.  However when viewing in the web browser the text looks soft and pixelated.  
    Does anybody know how I can solve this?   All I want is sharp lookinh text!
    J

    Hi Vikas
    I export files from Photoshop as png's at 72 dpi.  
    Here is our current holding page.  http://www.iheartmylife.co.uk/ All the text on this page has been loaded in as png's from Photoshop along with the image. As you can see none of it is as sharp as it could be.
    Many thanks for your assistance.
    James

  • How do you set up so that you can view the alternate text on an image when you hover over it like you do in IE?

    Using Mozilla at present the alternate text for an image does not pop up when you hover your mouse over the image. This is what occurs in Internet Explorer. In Mozilla Firefox you have to right click, choose Properties and then you can view the alternate text. Is there a way to set up the mouse hover? Or is there a keyboard shortcut to at least view the Properties information of an image on a webpage quicker?

    The Alt attribute isn't meant to show as a tooltip on hover.
    The Alt attribute is meant to show if the image isn't or can't be displayed.
    The title attribute is meant to show if you hover an image or link.
    *http://kb.mozillazine.org/Image_tooltips_do_not_work
    Some extensions can interfere and disable the tooltip.
    * [[Troubleshooting extensions and themes]]
    * http://www.w3.org/TR/html401/struct/global.html#title title
    * http://www.w3.org/TR/html401/struct/objects.html#alternate-text
    *Popup ALT Attribute: https://addons.mozilla.org/firefox/addon/1933

  • What is the best way to add text to an image

    I used the draw ap div to add text to an image.  will that cause any problems?  If so, what is the best way to add text to an image?  Thanks!

    APDivs will kill your design unless you fully understand the css behind the scenes and plan accordingly. They really are completely unnecessary in the vast majority of situations.
    An easy way to add "web text over an image" would be to use the background-image attribute in css for a standard <div> tag, then just add the text within that same <div>.
    Something like this in the css (if you are using a 300x300 pixel image)...
    #yourdiv {
         background-image:url(yourpic.jpg);
         width:300px;
         height:300px;
    And then this in the html...
    <div id="yourdiv">Your text here</div>
    You would then position the <div> using css margins, floats and padding. Using position:absolute (APDivs) is typically something that will blow your design to pieces if the viewer changes their browser settings.

  • How to change the text in the image..

    Hi there,
    Í'm new to Adobe Illustrator and I would like to know how I can change the text in the image.
    I would like to keep the design exactly the same way(colour, font) but just different words.
    This design is unlocked by the way.
    Thanks in advance!

    Go into outline view. If you can see the outlines of the letterforms, you can't just change the text. If the letterforms are solid black, take the type tool, select the text and type yours.
    Anyway you can just select the letters, take the type tool and type new text.
    Working with the type tool is a basic. Please see the manual for details

Maybe you are looking for