Help making a paint program in Flash

So, all this basically does so far is create a few colored
squares on the stage and let me draw in black. I'm trying to get it
to let me trace() some incremental value onRelease of the different
colors but I can't seem to get it to work. Can someone please help
me with this?

Don't know if this will help but worth a look.
http://www.lukamaras.com/tutorials/cool-design/flash-drawing-pad.html

Similar Messages

  • HELP MAKING VERY SIMPLE ANIMATION - Adobe Flash CS5

    - First off, apologies for the simplicity of the task I need to carry out- cannot seem to find any tutorials on this. (All aimed at After Effects)
    - I am hoping to make two simple animations;
    1. Animate the word "water" so it appears to be moving like water itself.
    2. Animate the word "sand" so it appears to crumble into sand itself.
    Appreciate any help, very new to Flash - still no luck after Lynda and other tutorials.

    Not exactly the answer to your question but found a tutorial page that could help you.
    Text Effects with Flash Professional 8 « Wonder How To

  • Help with a Paint Program if you'd be kind

    Hi, I am making a simple paint package...like simple Paint in Windows, I am trying to change the colour of the scribble line, so I have a button to click and then it scribbles on my panel in a different colour....i.e changing from Black to Red.
    I'm new to all this, so I'm not getting that far, but I know a little...
    I have the following code......
    (this is in a seperate panel.java file
    public void lineTo2(int x, int y) {
    Graphics2D g2 = currImage.createGraphics();
    line.setLine(lastX, lastY, x, y);
    g2.setPaint(Color.black);
    g2.setStroke(stroke);
    g2.draw(line);
    moveTo(x,y);
    g2.dispose();
    repaint();
    and then in my other .java file I have the following to use the buttons.......
    public void actionPerformed(ActionEvent event) {
    Object source = event.getSource();
    if (source == undoButton)
    myDrawing.undo();
    else if (source == exitButton)
    System.exit(0);
    else if (source == exitItem)
    System.exit(0);
    else if (source == redButton)
    repaint();
    ....so I don't quite know what method to use with the Red Button so that it only changes to red when I click that button?
    Any help would be great, and I'm sorry if my terminology is not that of an experienced programmer!
    Many Thanks
    Jon(UK)

    Have a member variable containing the current drawing colour. You then just need to change that when the button is pressed:
    private Color paintColor = Color.black; // Initial colour
    public void lineTo2(...)
      g2.setPaint(paintColor);
    public void actionPerformed(...)
      else if(source == redButton)
        paintColor = Color.red;
      else if(source == blackButton)
        paintColor = Color.black;
    }Hope this helps.

  • 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.

  • Paint program - layers

    Hi i am in the process of making a paint program and have decided to go through the (hopefully not) long process of using layers.
    at the moment all shapes, when drawn, are stored in a vector and then painted onto the graphics of a class extending JPanel.
    what i want to do is store them in separate images, all the size of the JPanel canvas (so they can be positioned at (0, 0)) and anyt area of the image that isnt part of the shape should be transparent.
    i have tried creating a new graphics object for each shape and then painting them onto an ARGB buffered image then storing all the images in a new vector and finally painting them onto the canvas however this isnt working.
    is there an easier way to do this, or does anybody know what has happened?
    thanks

    If they're in a vector, they're basically already in a kind of layered system, of course.
    If what you want is to have all the shapes live in their own coordinate system, and then be able to assign relative positions to draw their system in a larger coordinate system...well, I thought that Java2D already handled that. But if it doesn't, then rather than drawing in images, another thing you can do is create a class that represents a coordinate system. Basically, all it would have to do is have two state elements: a reference to a shape, and a reference to an (x,y) pair where you want to anchor that shape for drawing. Then your vector could hold these objects.
    It wouldn't have to be much more than:
    class Layer {
      private Shape shape;
      private Point location;
      // constructor that sets these; shape could be final, but location probably shouldn't be
      public void paint(Graphics g) {
        // maybe use AffineTransform to move the shape to the given location, then
        // paint it?
    }You should probably check on a forum that does more with GUIs though.
    But, if you want to, you can also make each layer just be an image. You'd gain some of the operations of images (like Graphics knowing how to scale them) but might lose image quality. There are a bunch of tutorials about double buffering that will tell you how to create an intermediate image; you could apply that to make multiple images, if you wanted to.

  • Paint program with save function

    Anyone know a way to make a paint program in flash 8 with
    save function?
    The paint area should be quite large so the current jpg
    saving methods don't seem to work.
    Any solutions for this?

    You probably have to specify what exactly is the problem. Are
    you referring to the data size that has to be transfered to a
    server?

  • 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.

  • 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);
    }

  • 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

  • Making an efficient paint program

    I'm writing a small paint program atm that has a 'freehand' tool which means a point is drawn at whatever locations the mouse button is held down at.
    Currently the code is like this:
    public void mouseDragged(MouseEvent me)
                a = new Point();
                a.setLocation(me.getX(),me.getY());
                pt.add(a);
                repaint();
            }Is there a more effcicient way of doing this, if I drag my mouse accross the sccreen there are noticeable gaps between the points.

    Don't draw a point at each spot along the drag path, draw a line between every two adjacent points. The mouse won't be at every pixel along the path, you can easily move it fast enough that it skips points, so drawing lines between adjacent points compensates for that.

  • IPhoto 9 plus all photos in finder are making constant fast beep sounds, flashing & frozen.  What happened

    Few days ago Mac Mail started making fast, loud, continuous beeping sounds while I was writing a long document. The Mail program started flashing, "vibrating," and froze. I had to force quit and lost that email (right - I should have saved it, but didn't).  I tried to re-create the document in Pages and the same thing happened.  Then I tried to recreate it in Word.  Same thing. (may sound nuts to just keep trying new programs, but this was an urgent document.  Figured I could get it done, then focus on fixing the problem)
    When I finally got things working again by re-starting multiple times and using Disk Utility, I evenutally opened iPhoto. After working with that program for several hours, I tried to use "share, "which creates an email with a jpeg. The same beeping and flashing started again. I had to shut down the computer. Next day everything seemed OK.  No problems for 3 days.
    Tonight I was working with several programs, all doing fine.  Then I opened iPhoto and it immediately started the fast beeping and wouldn't let me access any of my MANY photos. Had to force quit. So I tried to access photos I saved in Finder.  Every saved photo (I have hundreds in Finder) would beep and flash continuously when I clicked on it's icon, even without opening it.
    I can't find anything online about this situation. Some articles and forums talk about 3 beeps having a certain meaning. That's not what this is. It's continuous loud rhythmic beeps, flashing and I can barely shut down the program when that's going on. 
    Background: right before this started, my HD was very full and giving me warnings, so I deleted numerous file.  It's possible I could have deleted something that should NOT have been deleted. I also started in PRAM mode.  If I deleted something, I don't know how to tell what's missing. Also, iPhoto is very full and gave me warnings not to add photos. My Mac is 5 years old and running pretty fast. I installed Mountain Lion several months ago.
    Has anyone experienced this? Help!! I don't want to lose my photos!

    Running with a very full HD is very, very bad.
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on. Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Then, frankly, telling us you deleted "numerous file" but don't know what you deleted, really means that we can't help.
    It's very likely that your Library is damaged from being run on an overfull disk. But you'll need at least as muh disk space again for repair it.
    So, you need to get an external HD or two, move some data off that machine to make room. You may also need to reinstall your OS as you're not sure what you have deleted. After you've got your Os working you can try fix iPhoto.

  • 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

  • Creation of report with the help of report painter

    Dear Experts,
                         I need report painter material, if any body have  pls  farward to me.
    my intension to create controlling report with the help of report painter.
    I am ready to award full points.
    Thanks in advance
    Regards
    avudaiappan
    Moderator - Please read this:
    /thread/931177 [original link is broken]
    Thread locked

    Hello Chinasammy,
    Report Painter allows you to create reports using data from SAP application components, which you can adapt to meet your individual requirements.
    Many of your reporting requirements can already be met by using the standard reports provided by various SAP application components. If these SAP standard reports do not meet your reporting needs, Report Painter enables you to define your specific reports quickly and easily.
    When executing a Report Painter report, it is displayed by the system in Report Writer format. You thus have access to the same functions as for Report Writer reports defined in the same way, and can combine Report Painter and Report Writer reports together in a report group.
    Report Painter uses a graphical report structure, which forms the basis for your report definition and displays the rows and columns as they appear in the final report output.
    To facilitate report definition, you can use many of the standard reporting objects provided by SAP (such as libraries, row/column models, and standard layouts) in your own specific reports. When you define a Report Painter report you can use groups (sets). You can also enter characteristic values directly.
    Advantages of Report Painter include:
    Flexible and simple report definition
    Report definition without using sets
    Direct layout control: The rows and columns are displayed in the report definition as they appear in the final report output, making test runs unnecessary.
    =============================================
    Below mentioned is the process for creating reports using Report Painter as a tool.
    Selecting and maintaining a library for your report: As the transfer structure to Report Painter you use a report table, which is defaulted by SAP and can not be maintained. This table contains characteristics, key figures and predefined columns. In a library, you collect the characteristics, key figures, and predefined columns from the report table, which you need for your Report Painter reports.
    When you define a Report Painter report, you assign it to a library. Reports assigned to one library can only use the characteristics, key figures, and predefined columns selected for that library.
    When you create or maintain a library, the Position field determines the sequence in which the characteristics, key figures or (predefined) key figures appear in the Report Painter selection lists when you define a report. This allows you to position the objects that you use regularly in your reports at the beginning of the selection lists. If you do not make an entry in the Position field, you will not be able to use this object in Report Painter reports.
    You can use either the standard SAP libraries for your reports or define your own.
    (ii) Selecting or maintaining a standard layout for your report: Standard layouts determine report layout features and the format of your report data.If the SAP standard layouts do not meet your reporting requirements, you can create a new  standard layout or change an existing one.
    (iii) Defining row and column models: A model is a one-dimensional, predefined reporting structure that you can insert in either the rows or columns of your report.If you often use the same or similar row or column definitions in your reports, it is recommended that you create row or column models.
    You must define the row and/or column models that you want to include in your report definition before you define the report.
    You can also use the standard column models supplied by SAP.
    (iv) Defining the report: Defining a Report Painter report involves the following steps.
    (a) Define the report columns: You define the report columns using the characteristics, key figures, and predefined columns selected for the library that the report uses. Alternatively, you can use a column model for column definition. Column models are predefined column structures which you insert into your entire column definition, instead of defining each individual column.
    (b) Define the report rows: You define the report rows using the characteristics selected for the library selected for the report.
    Alternatively, you can use a row model for your row definition. Row models serve the same purpose as column models, but are used to define a report row.
    Edit and format the report rows and columns in line with your requirements. (For example, you can hide rows or columns, define the column width or define colors for your report rows).
    (iii)Define general data selection criteria for the selection of your report data: Selection criteria are the characteristics used to select data for the entire report. You cannot enter characteristics as data selection criteria if they are already being used in the report rows or columns.
    (iv) Assigning the report to a report group: Once you have defined a report, you must assign it to a report group. A report group can contain one or more reports from the same library. However, reports that share the same data will select data more quickly and improve processing time.
    Hopw this helps you. Please let me know if you need anything more and assign points.
    Rgds
    Manish

  • Help making a Install USB of os x 10.4.6. for my Macbook 1.8ghz

    Hi,
    I need help making the USB install of os Tiger.
    The drive is having trouble reading the install disc I own so I am trying to make a USB install of it.
    I wantto install from the usb not install to it to be clear.
    Things I have!
    X1 8gig sandisk flash drive
    1 Macbook white 1.8 ghz Intel
    1 Pc with Macdrive 7
    1 Install disc that seems to have trouble being read in the drive > few marks on the disc and the mac DVD drive make lots of noise reading it but
    It will go to Disk utilities.
    Seems to be a bug in Tiger and restore doesn’t seem to work as in I can’t drag and drop a source to the restore the DVD to the flash drive.
    I already tried only 1 time to copy the DVD to the formatted flash drive using Macdrive and it read it as a bootable drive but the apple simple came up
    And then I got a the error (Can’t find driver for this platform error APCH or something like that.
    I have a torrent download of OS x 10.4.6 as well just in case some files are corrupted > I own the disk so it’s not illegal.
    I am new to mac but long time user of PC.

    Ok ..you need another Mac to make this work!
    you just use another mac even a old one like g4 to make a restore to a flash drive that you have formatted and verified.
    Bye
    Sam

  • 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)

Maybe you are looking for

  • I have Elements 10 and a Nikon D7100. PSE10  CR 6.7 does not support the 7100 NEF. How can I get the updates to do this?

    I have Elements 10 and a Nikon D7100. PSE10  CR 6.7 does not support the 7100 NEF. How can I get the updates to do this?

  • Why my itunes keep hang on syncing backup?

    I had tried all troubleshoot but i still having trouble with my itunes. I cant sign in to Itune store & when I tried to sync it keep hang on part 2 ( backing up )

  • Purchase Order Email

    Dear Friends, We have a scenario where PO will be sent via email to the Vendor once when a PO is created and approved(as per the release strategy), the email (of the PO as attachment) is being sent by the latest approver(from the release strategy), b

  • Slow first name resolving

    Hi, This is the situation: Windows 2012 R2 servers, multi homed with a back-end and front-end NIC. The back-ends are attached to a back-end network (10.1.0.0/8) where two AD servers are running (10.1.0.1 and 10.1.0.2). The front-end interfaces are at

  • Default values for a field in itab

    Hello everyone! In the declaration below, DATA: BEGIN OF itab OCCURS 0,          belnr   LIKE bkpf-belnr,          myField,       END OF itab. The belnr field will be filled by using SELECT statement but myField will have a default value, for example