Paint Program Help

I'm trying to develop a simple paint program and the one feature that I just can't seem to figure out is how to add a text box to the image.
I want the user to be able to click a button, click on the spot on the image that they want text, and then to type that text in.
Thanks for the help!

You can use JOptionPane.showInputDialog() upon mouseClicked and thendrawString() after user inputs text

Similar Messages

  • Help with Paint program.

    Hello. I am somewhat new to Java and I was recently assigned to do a simple paint program. I have had no trouble up until my class started getting into the graphical functions of Java. I need help with my program. I am supposed to start off with a program that draws lines and changes a minimum of 5 colors. I have the line function done but my color change boxes do not work and I am able to draw inside the box that is supposed to be reserved for color buttons. Here is my code so far:
    // Lab13110.java
    // The Lab13 program assignment is open ended.
    // There is no provided student version for starting, nor are there
    // any files with solutions for the different point versions.
    // Check the Lab assignment document for additional details.
    import java.applet.Applet;
    import java.awt.*;
    public class Lab13110 extends Applet
         int[] startX,startY,endX,endY;
         int currentStartX,currentStartY,currentEndX,currentEndY;
         int lineCount;
         Rectangle red, green, blue, yellow, black;
         int numColor;
         Image virtualMem;
         Graphics gBuffer;
         int rectheight,rectwidth;
         public void init()
              startX = new int[100];
              startY = new int[100];
              endX = new int[100];
              endY = new int[100];
              lineCount = 0;
              red = new Rectangle(50,100,25,25);
              green = new Rectangle(50,125,25,25);
              blue = new Rectangle(50,150,25,25);
              yellow = new Rectangle(25,112,25,25);
              black = new Rectangle(25,137,25,25);
              numColor = 0;
              virtualMem = createImage(100,600);
              gBuffer = virtualMem.getGraphics();
              gBuffer.drawRect(0,0,100,600);
         public void paint(Graphics g)
              for (int k = 0; k < lineCount; k++)
                   g.drawLine(startX[k],startY[k],endX[k],endY[k]);
              g.drawLine(currentStartX,currentStartY,currentEndX,currentEndY);
              g.setColor(Color.red);
              g.fillRect(50,100,25,25);
              g.setColor(Color.green);
              g.fillRect(50,125,25,25);
              g.setColor(Color.blue);
              g.fillRect(50,150,25,25);
              g.setColor(Color.yellow);
              g.fillRect(25,112,25,25);
              g.setColor(Color.black);
              g.fillRect(25,137,25,25);
              switch (numColor)
                   case 1:
                        g.setColor(Color.red);
                        break;
                   case 2:
                        g.setColor(Color.green);
                        break;
                   case 3:
                        g.setColor(Color.blue);
                        break;
                   case 4:
                        g.setColor(Color.yellow);
                        break;
                   case 5:
                        g.setColor(Color.black);
                        break;
                   case 6:
                        g.setColor(Color.black);
                        break;
              g.setColor(Color.black);
              g.drawRect(0,0,100,575);
         public boolean mouseDown(Event e, int x, int y)
              currentStartX = x;
              currentStartY = y;
              if(red.inside(x,y))
                   numColor = 1;
              else if(green.inside(x,y))
                   numColor = 2;
              else if(blue.inside(x,y))
                   numColor = 3;
              else if(yellow.inside(x,y))
                   numColor = 4;
              else if(black.inside(x,y))
                   numColor = 5;
              else
                   numColor = 6;
              repaint();
              return true;
         public boolean mouseDrag(Event e, int x, int y)
              int Rectheight = 500;
              int Rectwidth = 900;
              currentEndX = x;
              currentEndY = y;
              Rectangle window = new Rectangle(0,0,900,500);
              //if (window.inside(Rectheight,Rectwidth))
                   repaint();
              return true;
         public boolean mouseUp(Event e, int x, int y)
              int Rectheight = 500;
              int Rectwidth = 900;
              startX[lineCount] = currentStartX;
              startY[lineCount] = currentStartY;
              endX[lineCount] = x;
              endY[lineCount] = y;
              lineCount++;
              Rectangle window = new Rectangle(0,0,900,500);
              if (window.inside(Rectheight,Rectwidth))
                   repaint();
              return true;
         public void Rectangle(Graphics g, int x, int y)
              g.setColor(Color.white);
              Rectangle screen = new Rectangle(100,0,900,600);
    }If anyone could point me in the right direction of how to go about getting my buttons to work and fixing the button box, I would be greatly appreciative. I just need to get a little bit of advice and I think I should be good after I get this going.
    Thanks.

    This isn't in any way a complete solution, but I'm posting code for a mouse drag outliner. This may be preferable to how you are doing rectangles right now
    you are welcome to use and modify this code but please do not change the package and make sure that you tell your teacher where you got it from
    MouseDragOutliner.java
    package tjacobs.ui;
    import java.awt.BasicStroke;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Stroke;
    import java.awt.event.*;
    import java.util.ArrayList;
    import java.util.Iterator;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    * See the public static method addAMouseDragOutliner
    public class MouseDragOutliner extends MouseAdapter implements MouseMotionListener {
         public static final BasicStroke DASH_STROKE = new BasicStroke(1.0f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL, 10.0f, new float[] {8, 8}, 0);
         private boolean mUseMove = false;
         private Point mStart;
         private Point mEnd;
         private Component mComponent;
         private MyRunnable mRunner= new MyRunnable();
         private ArrayList mListeners = new ArrayList(1);
         public MouseDragOutliner() {
              super();
         public MouseDragOutliner(boolean useMove) {
              this();
              mUseMove = useMove;
         public void mouseDragged(MouseEvent me) {
              doMouseDragged(me);
         public void mousePressed(MouseEvent me) {
              mStart = me.getPoint();
         public void mouseEntered(MouseEvent me) {
              mStart = me.getPoint();
         public void mouseReleased(MouseEvent me) {
              Iterator i = mListeners.iterator();
              Point end = me.getPoint();
              while (i.hasNext()) {
                   ((OutlineListener)i.next()).mouseDragEnded(mStart, end);
              //mStart = null;
         public void mouseMoved(MouseEvent me) {
              if (mUseMove) {
                   doMouseDragged(me);
         public     void addOutlineListener(OutlineListener ol) {
              mListeners.add(ol);
         public void removeOutlineListener(OutlineListener ol) {
              mListeners.remove(ol);
         private class MyRunnable implements Runnable {
              public void run() {
                   Graphics g = mComponent.getGraphics();
                   if (g == null) {
                        return;
                   Graphics2D g2 = (Graphics2D) g;
                   Stroke s = g2.getStroke();
                   g2.setStroke(DASH_STROKE);
                   int x = Math.min(mStart.x, mEnd.x);
                   int y = Math.min(mStart.y, mEnd.y);
                   int w = Math.abs(mEnd.x - mStart.x);
                   int h = Math.abs(mEnd.y - mStart.y);
                   g2.setXORMode(Color.WHITE);
                   g2.drawRect(x, y, w, h);
                   g2.setStroke(s);
         public void doMouseDragged(MouseEvent me) {
              mEnd = me.getPoint();
              if (mStart != null) {
                   mComponent = me.getComponent();
                   mComponent.repaint();
                   SwingUtilities.invokeLater(mRunner);
         public static MouseDragOutliner addAMouseDragOutliner(Component c) {
              MouseDragOutliner mdo = new MouseDragOutliner();
              c.addMouseListener(mdo);
              c.addMouseMotionListener(mdo);
              return mdo;
         public static interface OutlineListener {
              public void mouseDragEnded(Point start, Point finish);
         public static void main(String[] args) {
              JFrame f = new JFrame("MouseDragOutliner Test");
              Container c = f.getContentPane();
              JPanel p = new JPanel();
              //p.setBackground(Color.BLACK);
              c.add(p);
              addAMouseDragOutliner(p);
              f.setBounds(200, 200, 400, 400);
              f.addWindowListener(new WindowClosingActions.Exit());
              f.setVisible(true);
    }

  • Need help with algorithm for my paint program

    I was making a paint program with using a BufferedImage where the user draws to the BufferedImage and then I draw the BufferedImage onto the class I am extending JPanel with. I want the user to be able to use an undo feature via ctrl+z and I also want them to be able to update what kind of paper they're writing on live: a) blank paper b) graph paper c) lined paper. I cannot see how to do this by using BufferedImages. Is there something I'm missing or must I do it another way? I am trying to avoid the other way because it seems too demanding on the computer but if this is not do-able then I guess I must but I feel I should ask you guys if what I am doing is logical or monstrous.
    What I am planning to do is make a LinkedList that has the following 4 parameters:
    1) previous Point
    2) current Point
    3) current Color
    4) boolean connectPrevious
    which means that the program would basically draw the instantaneous line using the two points and color specified in paintComponent(Graphics g). The boolean value is for ctrl+z (undo) purposes. I am also planning to use a background thread to eliminate repeated entries in the LinkedList except for the last 25 components of the LinkedList (that number might change in practice).
    What do you guys think?
    Any input would be greatly appreciated!
    Thanks in advance!

    Look at the package javax.swing.undo package - UndoableEdit interface and UndoManager class.
    Just implement the interface. Store all necessary data to perform your action (colors, pixels, shapes etc.). Add all your UndoableEdits in an UndoManager instance and call undo() redo() when you need.

  • Cant open PC Paint files with Appleworks paint program

    I have been using the very simple Paint program that comes with windows. I have finally made the move and ditched the PC for something more stable.
    When I try to import my .bmp pictures I used to work on into Appleworks it insists on opeing the Drawing program that has no "fill" etc. Even when I open the Paint program and then "force" it to open a .bmp only part of the picture is shown. I thought that a .bmp is pretty basic and common file type.
    Does anyone know if Appleworks can handle .bmp files and if not what are other options. I didn't really feel the need to have a $170 paint program for what I am doing.
    Hope you can help.
    Michael

    Dale,
    Thanks for your reply.
    The problem is that I need to use the "fill" in the paint program.
    I have actually just been able to get the file to load into Appleworks paint after reading about using the .pict save. All looked good untill I tried to fill. What happens now is that the fill is very chunky and does not bleed thru at all. This makes it pretty useless at the moment.
    Same problem, with a twist now.
    Looking forward to any further ideas.
    Michael

  • Small paint program

    hi guys
    I'm having some trouble making a small paint program with swing. It needs the following functions:
    - choose a shape from a combobox(only line, rectangle or circle).
    - set the filled checkbox to on or off
    - choose a color with the JColorChooser when you click on the colorLabel
    Then you can start drawing the shape you selected on the JPanel.
    Could someone help me out ? I would really appreciate that :-)
    Greetz

    noah.w's PaintLike2 program might get you what you want
    http://forum.java.sun.com/thread.jspa?forumID=256&threadID=476969
    there is a PaintLike3 (also from noah.w) in the forums somewhere,
    but I couldn't find it

  • Paint program

    please anyone help me in this:-
    i want when i press button(line)
    appear sign like (+) and draw line in any direction
    please how can i do this ..
    please anyone help me.
    thanks in advance

    first :- thanks my friend for your answer.
    but i can't do anything in paint program .. i'm very annoying
    this my code :
    i hope anyone show to me how can draw line in texarea in my code .
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.ObjectInputStream;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    public class Paint extends JFrame {
        private JMenuBar bar;
        private JMenu fileMenue;
        private JMenuItem openItem,  saveItem,  aboutItem,  exitItem;
        private ObjectInputStream ois;
        private Vector vFile;
       // private CanvasPanel canvaspanel;
        public Paint() {
            super("Paint program");
            bar = new JMenuBar();
            fileMenue = new JMenu("File");
            openItem = new JMenuItem("open");
            fileMenue.add(openItem);
       //     openItem.addActionListener(new HandlerListener());
            saveItem = new JMenuItem("save");
            fileMenue.add(saveItem);
            aboutItem = new JMenuItem("About");
            fileMenue.add(aboutItem);
            setJMenuBar(bar);
            bar.add(fileMenue);
            add(new Component());
        public static void main(String[] args) {
            Paint paint = new Paint();
            paint.setVisible(true);
            paint.setLocationRelativeTo(null);
            paint.pack();
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.JToolBar;
    import javax.swing.border.TitledBorder;
    class Component extends JPanel {
        private ButtonTest buttontest;
        private JToolBar toolBar;
        private JButton lineButton,RectButton,ovalButton,polyButton,colorButton,rubberButton;
        private JTextArea area;
        private JPanel titlePanel;
        public Component() {
            setLayout(new BorderLayout());
            toolBar=new JToolBar();
            lineButton=new JButton("line");
            lineButton.setToolTipText("Drawing line");
            lineButton.addActionListener(this);           
             RectButton=new JButton("Rectangle");
            RectButton.setToolTipText("Drawing Rectangle");
            ovalButton=new JButton("Oval");
            ovalButton.setToolTipText("Drawing Oval");
            polyButton=new JButton("polygan");
            polyButton.setToolTipText("Drawing polygan");
            toolBar.add(lineButton,BorderLayout.PAGE_START);
            toolBar.add(RectButton);
            toolBar.add(ovalButton);
            toolBar.add(polyButton);
            add(toolBar,BorderLayout.NORTH);
            area=new JTextArea(20,30);
            area.setBackground(Color.LIGHT_GRAY);
            add(area);
           // setLayout(new GridLayout(0,2));
             titlePanel=new JPanel();
             TitledBorder titleColor;
             titleColor=BorderFactory.createTitledBorder("Component list");
             titlePanel.setBorder(titleColor);
             colorButton=new JButton("   Colors   ");
             rubberButton=new JButton("Rubber");
             titlePanel.setLayout(new GridLayout(0,1));
             titlePanel.add(colorButton,BorderLayout.NORTH);
             titlePanel.add(rubberButton,BorderLayout.SOUTH);
             add(titlePanel,BorderLayout.WEST);
        public void actionPerformed(ActionEvent e){
            if(e.getSource()==lineButton)
                ButtonTest
    public Dimension getPrefereSize(){
            return new Dimension(600,500);
    import java.awt.Graphics;
    import java.awt.Point;
    import org.w3c.dom.events.MouseEvent;
    class ButtonTest implements MouseListener, MouseMotionListener {
        String[] Shape={"LINE","Oval","Rectangle","polygan"};
       Point p;
        int x1,y1,x2,y2,width,height;
        public ButtonTest()
        public void DrawingLine(Graphics g){
            g.drawLine(x1, y1, x2, y1);
            mousePressed(MouseEvent e);
            mouseDragged(MouseEvent e);
        public void mousePressed(MouseEvent e) {
          p=e.getPoint();
        public void mouseDragged(MouseEvent e){
            rePaint();
            getGraphics().drawLine(p.x1, p.y1, e.getX(),  e.getY());//draw line from start point to current mouse position
        private Object getGraphics() {
            throw new UnsupportedOperationException("Not yet implemented");
        private void rePaint() {
            throw new UnsupportedOperationException("Not yet implemented");
    i know there is a lot of error in my code but i can't to correct it so please any one help me
    to correct my error and to draw only line in any direction in textarea
    thanks my friends

  • Paint Program/Coloring book

    Hi =) I'm pretty new to Java, just started taking java programming this quarter, and yeah, it's pretty confusing. ^^ But it started to make more sense when we learned about GUI and applets and stuff, since I'm more of an html person.
    Anyways, what I have done is a simple paint program. I have the canvas, and buttons with colors to choose from, and the clear button. I want to see if I can do a coloring book/page program. So if anyone can help me out of give me some advice on how to start. What I want to be able to do is have certain objects or a picture already on the canvas, and people can simply select the colors, and click somewhere on the picture to color it.
    I'd really appreciate the help. =) thanks!

    Normally your repsonses are better, faster, and happier the more specific you are. This fairly vauge, I would suggest starting on your project and ask a specific question when you get stuck.

  • Flash paint program saving

    Hi, I need help with a saving function.
    I have made a flash painting program, and need a "save function" that will save the image to my database.
    Could someone help me write a script or already have a nice easy script for me to use?

    check klingemann's bitmapexporter class.

  • New ipad the TV adverts show a Paint program

    Hi, in the UK here, they are advertising the new iPad on the TV, one of the clips of the advert show a Paint program being used to draw fine lines of colour by wiping the screen with a finger, does anybody know the name of this program ?, and is it avaialble for the iPad2 ?.   Please.
    We dont really want to upgrade to the new model iPad, BUT if it is the only way to use this Paint program, i might just have to get one !!!, for my better half !!!
    Tim

    Kool Lads and Lasses thanks a lot, i shall look that out straightaway, very helpful indeed.
    tim

  • Creating Tcode for report painter program in 4.0B version?

    hi all,
    How to create a tcode for report painter program in 4.0 B?
    I searched the forums. but i couldn't find the same for 4.0 B?
    Please helo me to solve this?
    Thanks,
    Vamshi

    I am closing as no one answered and worked in alaternative way for the requirement.

  • When i open itunes its normal and then out of nowhere it says "itunes has stopped working" and i have to click 'close program'. help?

    when i open itunes its normal and then out of nowhere it says "itunes has stopped working" and i have to click 'close program'. help?

    Having the same issue here....a quick fix is to just minimize the window, and immediately maximize it.  It will now fit the screen.  Trouble is, after you close it, you'll have to do it again when you re-start itunes.  The good news is it takes all of about 2 seconds.  Apple should fix this.  Should.

  • I need ready code for a simple paint program today

    hi all I need ready code for a simple paint program today for me ics projct
    plz give me a halp on this give me what you have with you and it is so good if it look like this :
    Design a GUI based drawing Java application that works like a simple paint program
    1-There should be a number of buttons for choosing different shapes to draw. For example, there should be a button for rectangle. If user presses the rectangle button, then he can draw a rectangle using mouse. Similarly, there should be a button for each shape(rectangle, circle, ellipse, and line etc.
    2-The shapes can be filled with different colors.
    3-There should be option of moving .
    4- There should also be three menus including File, Shape, and Color menu.
    i. File menu can have menu items New and Exit. If user selects New, the drawing area will be cleared and all shapes will be erased.
    ii. Shape menu will serve the same purpose as of feature 2 described above. It will have menu items for drawing all the different shapes. For example, there will be menu item for rectangle; so user can draw a rectangle by selecting the menu item for rectangle.
    iii. Color menu will serve the same purpose as of feature 3 described above. It will have menu items for all the colors which are shown in color buttons. The user can select a color from this menu and then click inside a shape to fill it with the selected color.

    Read the Swing tutorial. There are sections on how to use menus and painting and all other kinds of stuff you need to do this homework assignment. Nobody here is going to write the code for you:
    http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

  • Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?

    Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?
    I'm developing an application where a file is need to be saved as pdf. But, if there is already a pdf file with same name in the specified directory, I wish to overwrite it. And in the overwrite case, read-only files should not be overwritten. If the duplicate(old) file is opened in windows (Win7) explorer preview, it is write protected. So, it should not be overwritten. I tried to get the '
    FILE_ATTRIBUTE_READONLY' using MS API 'GetFileAttributes', but it didn't succeed. How Adobe marks the file as read-only for preview? Do I need to check some other attribute of the file?
    Thanks!

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • LodePaint: Painting Program

    LodePaint is an open source painting program similar to (Kolour)Paint but with more advanced features, more filters, soft brushes, alpha channel support, some HDR image support, etc...
    The program is aimed mostly at pixel artists, icons, texture editing, "programmer's art", etc...
    It can be downloaded here: https://sourceforge.net/projects/lodepaint/files/
    Just unzip & run. It requires SDL, and hardware accelerated OpenGL to run.
    Please try it out!
    Last edited by aardwolf (2010-03-06 15:20:01)

    If you try compiling it for 64-bit, it'd be interesting to know if it worked.
    It did not. Using this PKGBUILD
    # Maintainer: Stefan Husmann <[email protected]>
    pkgname=lodepaint-svn
    pkgver=7
    pkgrel=1
    pkgdesc="Painting program with full SDL+OpenGL GUI."
    url="http://sourceforge.net/projects/lodepaint/"
    arch=('i686' 'x86_64')
    license=('GPL3')
    depends=('sdl')
    source=()
    md5sums=()
    _svntrunk=https://lodepaint.svn.sourceforge.net/svnroot/lodepaint
    _svnmod=lodepaint
    build() {
    cd "$srcdir"
    LANG=C
    if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver)
    else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
    fi
    msg "SVN checkout done or server timeout"
    msg "Starting make..."
    rm -rf "$srcdir/$_svnmod-build"
    cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
    cd "$srcdir/$_svnmod-build/trunk"
    # BUILD
    g++ src/*.cpp src/lpi/*.cpp -o lodepaint -lSDL -lGL -W -Wall \
    -Wextra -pedantic -ansi -O2
    install -Dm755 lodepaint $pkgdir/usr/bin/lodepaint
    I get
    ==> Determining latest svn revision...
    -> Version found: 7
    ==> Making package: lodepaint-svn 7-1 x86_64 (So 7. Mär 13:25:31 CET 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    ==> Extracting Sources...
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    At revision 7.
    ==> SVN checkout done or server timeout
    ==> Starting make...
    src/paint_filter_plugin.cpp: In constructor 'FilterPlugin::FilterPlugin(const std::string&, GlobalToolSettings&, const lpi::gui::IGUIDrawer&)':
    src/paint_filter_plugin.cpp:52: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:69: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:83: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:85: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:86: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:87: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:88: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:96: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:97: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:98: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:99: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:100: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:101: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:102: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:103: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:104: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:105: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:106: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:107: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:108: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp: In constructor 'FilterPlugin::FilterPlugin(const std::string&, GlobalToolSettings&, const lpi::gui::IGUIDrawer&)':
    src/paint_filter_plugin.cpp:52: warning: dereferencing pointer 'p_getLodePaintPluginType.174' does break strict-aliasing rules
    src/paint_filter_plugin.cpp:52: note: initialized from here
    src/paint_filter_plugin.cpp: In constructor 'FilterPlugin::FilterPlugin(const std::string&, GlobalToolSettings&, const lpi::gui::IGUIDrawer&)':
    src/paint_filter_plugin.cpp:52: warning: dereferencing pointer 'p_getLodePaintPluginType.174' does break strict-aliasing rules
    src/paint_filter_plugin.cpp:52: note: initialized from here
    src/paint_imageformats.cpp: In constructor 'ImageFormatPlugin::ImageFormatPlugin(const std::string&)':
    src/paint_imageformats.cpp:403: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:422: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:435: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:442: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:449: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:456: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:463: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:464: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:465: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:466: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:468: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp: In constructor 'ImageFormatPlugin::ImageFormatPlugin(const std::string&)':
    src/paint_imageformats.cpp:403: warning: dereferencing pointer 'p_getLodePaintPluginType.203' does break strict-aliasing rules
    src/paint_imageformats.cpp:403: note: initialized from here
    src/paint_imageformats.cpp: In constructor 'ImageFormatPlugin::ImageFormatPlugin(const std::string&)':
    src/paint_imageformats.cpp:403: warning: dereferencing pointer 'p_getLodePaintPluginType.203' does break strict-aliasing rules
    src/paint_imageformats.cpp:403: note: initialized from here
    src/lpi/lpi_imageformats.cpp: In function 'bool lpi::decodeImageFile(std::string&, std::vector<unsigned char, std::allocator<unsigned char> >&, int&, int&, const unsigned char*, size_t, lpi::ImageFormat)':
    src/lpi/lpi_imageformats.cpp:795: error: no matching function for call to 'CBitmap::GetBits(unsigned char*, size_t&, int)'
    src/lpi/lpi_imageformats.cpp:593: note: candidates are: bool CBitmap::GetBits(void*, unsigned int&)
    src/lpi/lpi_imageformats.cpp:607: note: void* CBitmap::GetBits()
    src/lpi/lpi_imageformats.cpp:614: note: bool CBitmap::GetBits(void*, unsigned int&, unsigned int)
    src/lpi/stb_image.cpp: In function 'stbi_uc* stbi_tga_load_from_memory(const stbi_uc*, int, int*, int*, int*, int)':
    src/lpi/stb_image.cpp:2866: warning: 'trans_data$3' may be used uninitialized in this function
    src/lpi/stb_image.cpp:2866: note: 'trans_data$3' was declared here
    src/lpi/stb_image.cpp:2866: warning: 'trans_data$2' may be used uninitialized in this function
    src/lpi/stb_image.cpp:2866: note: 'trans_data$2' was declared here
    src/lpi/stb_image.cpp:2866: warning: 'trans_data$1' may be used uninitialized in this function
    src/lpi/stb_image.cpp:2866: note: 'trans_data$1' was declared here
    src/lpi/stb_image.cpp:2866: warning: 'trans_data$0' may be used uninitialized in this function
    src/lpi/stb_image.cpp:2866: note: 'trans_data$0' was declared here
    install: cannot stat `lodepaint': No such file or directory
    ==> ERROR: Build Failed.
    Aborting...
    Process makepkg exited abnormally with code 2
    the relevant error seems to be in
    src/lpi/lpi_imageformats.cpp:795:error: no matching function for call to 'CBitmap::GetBits(unsigned char*, size_t&, int)'
    src/lpi/lpi_imageformats.cpp:593: note: candidates are: bool CBitmap::GetBits(void*, unsigned int&)
    src/lpi/lpi_imageformats.cpp:607: note: void* CBitmap::GetBits()
    src/lpi/lpi_imageformats.cpp:614: note: bool CBitmap::GetBits(void*, unsigned int&, unsigned int)
    Last edited by Stefan Husmann (2010-03-07 12:39:07)

  • Freely Programmed help in Pop Up Window

    Hi,
      Is it possible to display the data of freely programmed help in the pop up window.
    Thanks
    Raghavendra

    Hi Thomas,
       I agree that by using Freely Programmed help the data will be displayed in a seperate window. I want to display the data in a window( of type Pop Up) because i am displaying table control with 3 fields on clicking f4 and it has 2 buttons Ok and Cancel. But if there are 50 entries the user needs to scroll down to click on Ok. If the window is of type pop up Ok button will be embedded in the window instead of on view.
    Thanks
    Raghavendra

Maybe you are looking for

  • Previously Working iTunes Will No Longer Play Songs

    I have been using iTunes on my computer(Vista) for several months now with no problems until this morning. I can succesfully load the program, but when I try to play a song, the song tracker becomes a negative number and nothing will play. Any help w

  • I got my phone serviced and I can't open a free downloaded game it takes me to account settings saying error with credit card, it's a free game! I could play it before phone was fixed why not now

    My phone won't open already installed free games, before I had my phone fixed by Apple the game worked, now it's sending me to account settings to put another credit card on file, I don't have another credit card and the game is free!!! PLEASE TELL M

  • Bw general

    whats the meaning of involved in Multi dimentional modeling. whats the meaning of validated data consistency in reporting with data targets aganist psa after loading them to data targets. how we can do performence for unit testing and integrity testi

  • SAP TALENT MANAGEMENT V/S NAKIS

    Hello, I am trying to prepare a document on SAP TLT MGT v/s Nakisa... I am  aware of entire talent mgt modules in sap but trying to figureout things in Nakika. can anybody help with suitable links or docs available with you. cheers md Moderator messa

  • How to sort in report 6i ?

    Hi all, I got one query Q_1, whereby when query run it will give me the partno that found in table A. However, in Q_1, there is one calculation column, say QTY1, will be calculated and displayed in the layout with no problem. Ok, how am I going to so