Add two images

I would like to add several images (images = object of the labview data accessed through Grahpics & sons-> functions of photo).  Right now I can use an image as an entry to a photo function (for example, draw Rectangle, or a circle to draw), and I can cascade of the different drawing commands in order to get a composite image.  But I would like to store different images that I use for overlays of graphic intensity and enable or disable them for the user.  It seems that if a function to add two pictures, which seems to be intrinsic to all the drawing vi, must exist but I can't find it anywhere.  Does one exist?

Thank you

Doug

Looks like "String concatenate" made the turn.  Who would have thought images were strings? And can be concatenated?  NEITHER can make it easier to find in the documentation it is already there.  Or add if not.

Tags: NI Software

Similar Questions

  • How to merge two images to become a

    How can I take two separate images and merge them into just a photo?

    The free software IrfanView can do the job you need.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download IrfanView
    http://MajorGeeks.com/IrfanView_d4253.html
    (filename: iview432_setup.exe)
    (uncheck if you don't want Google Chrome)

    Download plug-ins too...

    IrfanView plugins
    http://MajorGeeks.com/IrfanView_PlugIns_d4908.html
    (filename: irfanview_plugins_432_setup.exe)

    When IrfanView is downloaded and installed, see the following
    instructions for joining your photos.

    Open IrfanView and go... Image / create the Image of the Panorama...
    (this will open the screen to "Create a panorama image")

    On the screen to "Create a panorama image"... left click on the add images"" button.
    (Displays the 'Open' screen. Now, drill down to the
    the folder that contains your saved Photos of veterinarians.

    Now... click left (highlighted), the two images, you want to join.
    (you can select more than one if you hold down your Ctrl key)
     
    The two images highlight... left click on the button 'open '.
    (Or... you can add the images one at a time... which is always easier)

    Now, go back to the screen "Create the panorama image.
    and the file names of the selected pictures need to be in the
    Field "Input Images.

    Now with the names of two files in 'Images of entry' field...
    You can left click on the button 'create Image '.

    (the positions left and right of these images can be swapped in)
    selection of a file name and using the "mount image" / "Move."
    Images down"buttons...)

    Now you should see a display of the combined image.
    Reach... File / save as...

    Choose a backup location / enter a file name / choose a format...
    On the left, click on the button "Save..."

  • Windows Movie Maker-how add two or more music/songs to different scenes in a film

    Director of Windows (audio / music), two or more pieces to add to the same film. a part of a song to be added as the Crter trim option but for music files

    1. how to add two or more music/songs on different places in a movie?

    2. do movie maker has the possibility to take part of a file of music/song to be added to a scene (like the trim option behind the scenes clip), for example if I imported an entire song but I need a specific part to be included in a scene, filmmaker support this or I need to do it on another software before in movie maker?

    1. how to add two or more music/songs on different places in a movie?

    2. do movie maker has the possibility to take part of a file of music/song to be added to a scene (like the trim option behind the scenes clip), for example if I imported an entire song but I need a specific part to be included in a scene, filmmaker support this or I need to do it on another software before in movie maker?

    ====================================
    The layer of the audio files on a single clip... Add an audio file...
    Save the project as a WMV video file, re-import the WMV
    film of the file and add another audio file.

    To save in a .wmv movie file...
    Type of... CTRL + P to open the movie recording Wizard.
    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    ICT... "Best quality for my computer.
    Next /.
    Wait while the movie is saved.
    Finishing...

    To add a specific part of an audio file... divide and
    delete the unwanted part.

    "Split a Clip.

    Drag the video/audio clip to the
    Timeline.

    Read the video/audio by clicking on the
    "Play" button under the display screen.

    You will see the playback indicator
    (vertical line), advancing through the
    timeline.

    Click on the button "Pause" to the point
    where you want to split and type...
    CTRL + L or click the "Split" button to the
    at the bottom of the display screen.
    (you can also make adjustments to)
    Drag the playback indicator)

    Make splits as much as you want and
    remove unwanted in law clips
    Click on / delete.

    And... Movie Maker 2.1 one poster each
    another framework. To see all the images, the
    PapaJohn information suite may be useful:

    ===

    Movie Maker 2 shows you all-other-frame
    When you perform the installation of project. MM1 and film
    Machine running Vista show you each image.

    It is usually not a problem when ignoring him
    Middle managers, but sometimes you
    Note a flickering image in a clip that is a "stray,"
    and you can not see or cut it out.

    If you apply the Slow - Down - half video effect
    to an item in the timeline panel, you will see
    each image rather than everyone. You
    can see the frame problem and divide it out.
    Remove the effect of the clamp to return
    It's normal.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Overlap two images, ordinary java works, and not in BlackBerry JDE 5

    I have an application for swing of simple java that takes two images and overlaps the other. While trying to this port in JDE5, I got out there is no class BufferedImage in the api of BB, but a similar class of the Bitmap. It's brought to BB mixing function is unable to produce an image that overlap. It shows a blank white screen.

    Here's the plain java function

    public BufferedImage blend( BufferedImage bi1, BufferedImage bi2,            double weight )   {     if (bi1 == null)          throw new NullPointerException("bi1 is null");
    
          if (bi2 == null)          throw new NullPointerException("bi2 is null");
    
          int width = bi1.getWidth();       if (width != bi2.getWidth())          throw new IllegalArgumentException("widths not equal");
    
         int height = bi1.getHeight();     if (height != bi2.getHeight())
    
              throw new IllegalArgumentException("heights not equal");
    
            BufferedImage bi3 = new BufferedImage(width, height,              BufferedImage.TYPE_INT_RGB);      int[] rgbim1 = new int[width];        int[] rgbim2 = new int[width];        int[] rgbim3 = new int[width];
    
          for (int row = 0; row < height; row++)     {         bi1.getRGB(0, row, width, 1, rgbim1, 0, width);           bi2.getRGB(0, row, width, 1, rgbim2, 0, width);
    
             for (int col = 0; col < width; col++)          {             int rgb1 = rgbim1[col];               int r1 = (rgb1 >> 16) & 255;                int g1 = (rgb1 >> 8) & 255;             int b1 = rgb1 & 255;
    
                    int rgb2 = rgbim2[col];               int r2 = (rgb2 >> 16) & 255;                int g2 = (rgb2 >> 8) & 255;             int b2 = rgb2 & 255;
    
                    int r3 = (int) (r1 * weight + r2 * (1.0 - weight));               int g3 = (int) (g1 * weight + g2 * (1.0 - weight));               int b3 = (int) (b1 * weight + b2 * (1.0 - weight));               rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;            }
    
               bi3.setRGB(0, row, width, 1, rgbim3, 0, width);       }
    
           return bi3;   } 
    

    Here's the java function of BB

      public Bitmap blend( Bitmap bi1, Bitmap  bi2,                      double weight )        {
    
                  if (bi1 == null)                       throw new NullPointerException("bi1 is null");
    
                    if (bi2 == null)                       throw new NullPointerException("bi2 is null");
    
                    int width = bi1.getWidth();            if (width != bi2.getWidth())                   throw new IllegalArgumentException("widths not equal");
    
                   int height = bi1.getHeight();          if (height != bi2.getHeight())
    
                            throw new IllegalArgumentException("heights not equal");
    
             Bitmap bi3 = new Bitmap(width, height);         int[] rgbim1 = new int[width];         int[] rgbim2 = new int[width];         int[] rgbim3 = new int[width];
    
                    for (int row = 0; row < height; row++)         {
    
                           bi1.getARGB(rgbim1,0,width,0,row, width,1);                       bi2.getARGB(rgbim2,0,width,0,row, width,1); 
    
                           for (int col = 0; col < width; col++)                  {                              int rgb1 = rgbim1[col];                                int r1 = (rgb1 >> 16) & 255;                           int g1 = (rgb1 >> 8) & 255;                            int b1 = rgb1 & 255;
    
                              int rgb2 = rgbim2[col];                                int r2 = (rgb2 >> 16) & 255;                           int g2 = (rgb2 >> 8) & 255;                            int b2 = rgb2 & 255;
    
                              int r3 = (int) (r1 * weight + r2 * (1.0 - weight));                            int g3 = (int) (g1 * weight + g2 * (1.0 - weight));                            int b3 = (int) (b1 * weight + b2 * (1.0 - weight));                            rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;                     }
    
                         bi3.setARGB(rgbim3, 0, width, 0,  row,width, 1);
    
                    }
    
                 return bi3;    }
    

    The weight of the arg is a value from 1 to 100.

    For reference, the full plain java source

    /* * To change this template, choose Tools | Templates * and open the template in the editor. */
    
    package imagetest;
    
    /** * * @author COMPUTER */// Blender1.java
    
    import java.awt.*;import java.awt.image.*;
    
    import javax.swing.*;import javax.swing.event.*;
    
    /** * This class describes and contains the entry point to an application that * demonstrates the blending transition. */
    
    public class Blender1 extends JFrame{  /**    *     */   private static final long serialVersionUID = 1L;
    
        /**    * Construct Blender1 GUI.     */
    
     public Blender1() {     super("Blender #1");      setDefaultCloseOperation(EXIT_ON_CLOSE);
    
            // Load first image from JAR file and draw image into a buffered image.
    
         ImageIcon ii1 = new ImageIcon(getClass().getResource("x.png"));       final BufferedImage bi1;      bi1 = new BufferedImage(ii1.getIconWidth(), ii1.getIconHeight(),              BufferedImage.TYPE_INT_RGB);      Graphics2D g2d = bi1.createGraphics();        int h = ii1.getImage().getHeight(null);       System.out.println("Blender1.Blender1()--------> height :" + h);       g2d.drawImage(ii1.getImage(), 0, 0, null);        g2d.dispose();
    
          // Load second image from JAR file and draw image into a buffered image.
    
            ImageIcon ii2 = new ImageIcon(getClass().getResource("y.png"));       final BufferedImage bi2;      bi2 = new BufferedImage(ii2.getIconWidth(), ii2.getIconHeight(),              BufferedImage.TYPE_INT_RGB);      g2d = bi2.createGraphics();       int h2 = ii2.getImage().getHeight(null);      System.out.println("Blender1.Blender1()--------> height :" + h2);      g2d.drawImage(ii2.getImage(), 0, 0, null);        g2d.dispose();
    
          // Create an image panel capable of displaying entire image. The widths       // of both images and the heights of both images must be identical.
    
         final ImagePanel ip = new ImagePanel();       ip.setPreferredSize(new Dimension(ii1.getIconWidth(), ii1             .getIconHeight()));       getContentPane().add(ip, BorderLayout.NORTH);
    
           // Create a slider for selecting the blending percentage: 100% means      // show all of first image; 0% means show all of second image.
    
          final JSlider slider = new JSlider(JSlider.HORIZONTAL, 0, 100, 100);      slider.setMinorTickSpacing(5);        slider.setMajorTickSpacing(10);       slider.setPaintTicks(true);       slider.setPaintLabels(true);      slider.setLabelTable(slider.createStandardLabels(10));        slider.setInverted(true);     ChangeListener cl;        cl = new ChangeListener()     {         public void stateChanged( ChangeEvent e )         {             // Each time the user adjusts the slider, obtain the new              // blend percentage value and use it to blend the images.
    
                   int value = slider.getValue();                ip.setImage(blend(bi1, bi2, value / 100.0));          }     };        slider.addChangeListener(cl);     getContentPane().add(slider, BorderLayout.SOUTH);
    
           // Display the first image, which corresponds to a 100% blend     // percentage.
    
          ip.setImage(bi1);
    
           pack();       setVisible(true); }
    
       /**    * Blend the contents of two BufferedImages according to a specified weight.   *     * @param bi1  *            first BufferedImage  * @param bi2  *            second BufferedImage     * @param weight   *            the fractional percentage of the first image to keep     *     * @return new BufferedImage containing blended contents of BufferedImage  *         arguments   */
    
     public BufferedImage blend( BufferedImage bi1, BufferedImage bi2,         double weight )   {     if (bi1 == null)          throw new NullPointerException("bi1 is null");
    
          if (bi2 == null)          throw new NullPointerException("bi2 is null");
    
          int width = bi1.getWidth();       if (width != bi2.getWidth())          throw new IllegalArgumentException("widths not equal");
    
         int height = bi1.getHeight();     if (height != bi2.getHeight())
    
              throw new IllegalArgumentException("heights not equal");
    
            BufferedImage bi3 = new BufferedImage(width, height,              BufferedImage.TYPE_INT_RGB);      int[] rgbim1 = new int[width];        int[] rgbim2 = new int[width];        int[] rgbim3 = new int[width];
    
          for (int row = 0; row < height; row++)     {         bi1.getRGB(0, row, width, 1, rgbim1, 0, width);           bi2.getRGB(0, row, width, 1, rgbim2, 0, width);
    
             for (int col = 0; col < width; col++)          {             int rgb1 = rgbim1[col];               int r1 = (rgb1 >> 16) & 255;                int g1 = (rgb1 >> 8) & 255;             int b1 = rgb1 & 255;
    
                    int rgb2 = rgbim2[col];               int r2 = (rgb2 >> 16) & 255;                int g2 = (rgb2 >> 8) & 255;             int b2 = rgb2 & 255;
    
                    int r3 = (int) (r1 * weight + r2 * (1.0 - weight));               int g3 = (int) (g1 * weight + g2 * (1.0 - weight));               int b3 = (int) (b1 * weight + b2 * (1.0 - weight));               rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;            }
    
               bi3.setRGB(0, row, width, 1, rgbim3, 0, width);       }
    
           return bi3;   }
    
       /**    * Application entry point.    *     * @param args     *            array of command-line arguments  */
    
     public static void main( String[] args )  {     Runnable r = new Runnable()       {         public void run()         {             // Create Blender1's GUI on the event-dispatching             // thread.
    
                  new Blender1();           }     };        EventQueue.invokeLater(r);    }}
    
    /** * This class describes a panel that displays a BufferedImage's contents. */
    
    class ImagePanel extends JPanel{ /**    *     */   private static final long serialVersionUID = 4977990666209629996L;    private BufferedImage bi;
    
       /**    * Specify and paint a new BufferedImage.  *     * @param bi   *            BufferedImage whose contents are to be painted   */
    
     void setImage( BufferedImage bi ) {     this.bi = bi;     repaint();    }
    
       /**    * Paint the image panel.  *     * @param g    *            graphics context used to paint the contents of the current   *            BufferedImage    */
    
     public void paintComponent( Graphics g )  {     if (bi != null)       {         Graphics2D g2d = (Graphics2D) g;          g2d.drawImage(bi, null, 0, 0);        } }}
    

    Full java BB source

    /* * ImageScreen.java * * © ,  * Confidential and proprietary. */
    
    package src;
    
    /** *  */
    
    import java.io.OutputStream;import javax.microedition.io.Connector;import javax.microedition.io.file.FileConnection;import net.rim.device.api.system.Bitmap;import net.rim.device.api.ui.Field;import net.rim.device.api.ui.FieldChangeListener;import net.rim.device.api.ui.UiApplication;import net.rim.device.api.ui.component.BitmapField;import net.rim.device.api.ui.component.ButtonField;import net.rim.device.api.ui.component.Dialog;import net.rim.device.api.ui.component.LabelField;import net.rim.device.api.ui.container.HorizontalFieldManager;import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.ui.component.GaugeField;/** * The main screen to display an image taken from the camera demo. */public final class ImageScreen extends MainScreen{    /** The down-scaling ratio applied to the snapshot Bitmap */    private static final int IMAGE_SCALING = 7;
    
        /** The base file name used to store pictures */    private static final String FILE_NAME = System.getProperty("fileconn.dir.photos") + "IMAGE";
    
        /** The extension of the pictures to be saved */    private static final String EXTENSION = ".bmp";
    
        /** A counter for the number of snapshots taken */    private static int _counter;    Bitmap image1,image2; BitmapField imageField;     /** A reference to the current screen for listeners */    private ImageScreen _imageScreen;
    
       /**    * Constructor    * @param raw A byte array representing an image    */    public ImageScreen( final byte[] raw1,final byte[] raw2 )    {        // A reference to this object, to be used in listeners        _imageScreen = this;
    
            setTitle("Blend and Save");
    
            // Convert the byte array to a Bitmap image        image1 = Bitmap.createBitmapFromBytes( raw1, 0, -1, 1 );        image2 = Bitmap.createBitmapFromBytes( raw2, 0, -1, 1 );        // Create two field managers to center the screen's contents        HorizontalFieldManager hfm1 = new HorizontalFieldManager( Field.FIELD_HCENTER );        HorizontalFieldManager hfm2 = new HorizontalFieldManager( Field.FIELD_HCENTER );        HorizontalFieldManager hfm3 = new HorizontalFieldManager( Field.FIELD_HCENTER );        // Create the field that contains the image//blend(image1, image2, 50/ 100.0)        imageField = new BitmapField(blend(image1, image2, 50/ 100.0) ){
    
               public int getPreferredWidth(){ return 250;}           public int getPreferredHeight(){ return 150;}
    
             };
    
            hfm1.add( imageField ); 
    
            GaugeField scroller = new GaugeField("Adjust (alt + < >)",0,100,50,Field.EDITABLE | Field.FOCUSABLE);        //scroller.setBackground( net.rim.device.api.ui.decor.BackgroundFactory.createSolidBackground(0x00000000));          scroller.setChangeListener( new GaugeFieldListener() );         hfm2.add(scroller);         // Create the SAVE button which returns the user to the main camera        // screen and saves the picture as a file.        ButtonField photoButton = new ButtonField( "Save" );        photoButton.setChangeListener( new SaveListener(raw1,raw2) );        hfm3.add(photoButton);
    
            // Create the CANCEL button which returns the user to the main camera        // screen without saving the picture.        ButtonField cancelButton = new ButtonField( "Cancel" );        cancelButton.setChangeListener( new CancelListener() );        hfm3.add(cancelButton);
    
            // Add the field managers to the screen        add( hfm1 );        add( hfm2 );        add( hfm3 );scroller.setFocus();//scroller.setValue(50);    }    public Bitmap blend( Bitmap bi1, Bitmap  bi2,                      double weight )        {
    
                  if (bi1 == null)                       throw new NullPointerException("bi1 is null");
    
                    if (bi2 == null)                       throw new NullPointerException("bi2 is null");
    
                    int width = bi1.getWidth();            if (width != bi2.getWidth())                   throw new IllegalArgumentException("widths not equal");
    
                   int height = bi1.getHeight();          if (height != bi2.getHeight())
    
                            throw new IllegalArgumentException("heights not equal");
    
             Bitmap bi3 = new Bitmap(width, height);         int[] rgbim1 = new int[width];         int[] rgbim2 = new int[width];         int[] rgbim3 = new int[width];
    
                    for (int row = 0; row < height; row++)         {            // bi -> int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) 
    
                 // bit - > int[] argbData, int offset, int scanLength, int x, int y, int width, int height) 
    
                           bi1.getARGB(rgbim1,0,width,0,row, width,1);//  row, width, 1, , 0, width);                       bi2.getARGB(rgbim2,0,width,0,row, width,1); 
    
                           //bi1.getRGB(0, row, width, 1, rgbim1, 0, width);                       //bi2.getRGB(0, row, width, 1, rgbim2, 0, width);
    
                           for (int col = 0; col < width; col++)                  {                              int rgb1 = rgbim1[col];                                int r1 = (rgb1 >> 16) & 255;                           int g1 = (rgb1 >> 8) & 255;                            int b1 = rgb1 & 255;
    
                              int rgb2 = rgbim2[col];                                int r2 = (rgb2 >> 16) & 255;                           int g2 = (rgb2 >> 8) & 255;                            int b2 = rgb2 & 255;
    
                              int r3 = (int) (r1 * weight + r2 * (1.0 - weight));                            int g3 = (int) (g1 * weight + g2 * (1.0 - weight));                            int b3 = (int) (b1 * weight + b2 * (1.0 - weight));                            rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;                     }                    //bi -> int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)                     //bit -> (int[] data, int offset, int scanLength, int left, int top, int width, int height)                      bi3.setARGB(rgbim3, 0, width, 0,  row,width, 1);
    
                        // bi3.setRGB(0, row, width, 1, rgbim3, 0, width);                }
    
                 return bi3;    }
    
       /**    * Handles trackball click events    * @see net.rim.device.api.ui.Screen#invokeAction(int)    */       protected boolean invokeAction(int action)    {        boolean handled = super.invokeAction(action); 
    
            if(!handled)        {            switch(action)            {                case ACTION_INVOKE: // Trackball click.                {                                 return true;                }            }        }                return handled;              }
    
     /**    * A listener used for the "Save" button    */    private class GaugeFieldListener implements FieldChangeListener    {        public void fieldChanged(Field field, int context)        {          int value =  ((GaugeField)field).getValue(); if (value==0){return;}          imageField.setBitmap( blend(image1, image2, value/ 100.0) );          ((GaugeField)field).setLabel("Adjust (alt + < >)"+value);        }    }   /**    * A listener used for the "Save" button    */    private class SaveListener implements FieldChangeListener    {        /** A byte array representing an image */        private byte[] _raw1,_raw2;
    
           /**        * Constructor.        * @param raw A byte array representing an image        */        SaveListener(byte[] raw1,byte[] raw2)        {            _raw1 = raw1;            _raw2 = raw2;        }
    
           /**        * Saves the image as a file in the BlackBerry filesystem        */        public void fieldChanged(Field field, int context)        {            try            {                       // Create the connection to a file that may or                // may not exist.                FileConnection file = (FileConnection)Connector.open( FILE_NAME + _counter + EXTENSION );
    
                    // If the file exists, increment the counter until we find                // one that hasn't been created yet.                while( file.exists() )                {                    file.close();                    ++_counter;                    file = (FileConnection)Connector.open( FILE_NAME + _counter + EXTENSION );                }
    
                    // We know the file doesn't exist yet, so create it                file.create();
    
                    // Write the image to the file                OutputStream out = file.openOutputStream();                out.write(_raw1);
    
                    // Close the connections                out.close();                file.close();            }            catch(Exception e)            {                Dialog.alert( "ERROR " + e.getClass() + ":  " + e.getMessage() );            }
    
                // Inform the user where the file has been saved            Dialog.inform( "Saved to " + FILE_NAME + _counter + EXTENSION );
    
                // Increment the image counter            ++_counter;
    
                // Return to the main camera screen            UiApplication.getUiApplication().popScreen( _imageScreen );        }    }
    
       /**    * A listener used for the "Cancel" button    */    private class CancelListener implements FieldChangeListener    {       /**        * Return to the main camera screen        */        public void fieldChanged(Field field, int context)        {            UiApplication.getUiApplication().popScreen( _imageScreen );        }    }}
    

    Yes, your original code:

    for (int col = 0; col < width; col++){int rgb1 = rgbim1[col];int r1 = (rgb1 >> 16) & 255;int g1 = (rgb1 >> 8) & 255;int b1 = rgb1 & 255;
    
    int rgb2 = rgbim2[col];int r2 = (rgb2 >> 16) & 255;int g2 = (rgb2 >> 8) & 255;int b2 = rgb2 & 255;
    
    int r3 = (int) (r1 * weight + r2 * (1.0 - weight));int g3 = (int) (g1 * weight + g2 * (1.0 - weight));int b3 = (int) (b1 * weight + b2 * (1.0 - weight));rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;}
    

    Labour Code:

    for (int col = 0; col < width; col++)
    {
    int rgb1 = rgbim1[col];
    int a1 = (rgb1 >> 24) & 255;
    int r1 = (rgb1 >> 16) & 255;
    int g1 = (rgb1 >> 8) & 255;
    int b1 = rgb1 & 255;
    
    int rgb2 = rgbim2[col];
    int a2 = (rgb2 >> 24) & 255;
    int r2 = (rgb2 >> 16) & 255;
    int g2 = (rgb2 >> 8) & 255;
    int b2 = rgb2 & 255;
    
    int a3 = (int) (a1 * weight + a2 * (1.0 - weight));
    int r3 = (int) (r1 * weight + r2 * (1.0 - weight));
    int g3 = (int) (g1 * weight + g2 * (1.0 - weight));
    int b3 = (int) (b1 * weight + b2 * (1.0 - weight));
    rgbim3[col] = (a3 << 24) | (r3 << 16) | (g3 << 8) | b3;
    }
    
  • Merge two images into a single MovieClip?

    Hello

    I have two images,

    var BigImage:BigPhoto = new BigPhoto() / / a PNG of 640 x 960 pixels

    addChild (BigImage)

    var thumb: LittlePhoto = new LittlePhoto() / / a PNG of 140 x 220 Pixels

    addChild (Thumb)

    I need create and save another image which is Big as a background and the small inside this position x = 40, y = 200

    Sorry for my English, but I need to "embed" the small photo inside the large Photo, I whish culd be understood

    Anyone knows how is the AS3 CS5.5 code for this?

    Thank you

    If you add the big picture for something, then add the image to the same after setting its x and y, you can then draw the container into something else. I assume you want that going back to the photo gallery, as shown here:

    http://forums.Adobe.com/message/3870150#3870150

    So this script has changed to what you ask would now read as follows:

    var BigImage:BigPhoto = new BigPhoto();

    var thumb: LittlePhoto = new LittlePhoto();

    Thumb.x = 40;

    Thumb.y = 200;

    var holdermc:MovieClip = new MovieClip();
    
    holdermc.addChild(BigImage);
    
    holdermc.addChild(Thumb);
    
     var cameraRoll:CameraRoll = new CameraRoll();   var bitmapData:BitmapData = new BitmapData(holdermc.width, holdermc.height);  bitmapData.draw(holdermc);  cameraRoll.addBitmapData(bitmapData);
    
  • Possible to add an image in a pdf header?

    I have Acrobat 9 and created a jpeg header in Photoshop. Is it possible to add this image to a header on the pdf pages? If so, how?

    Thank you

    There are at least two ways:

    1. the document > background > add/replace

    2. the document > watermark > add

    It is also possible by using a button, by setting the icon image you want, and then distribute it to all the pages and then flatten pages to convert the appearance of the button to the page content regularly.

  • Can I add an image to a rollover area?

    Hello
    Can I add an image to a rollover area? For example a 'mouse hover here prompt? "

    Additionally, my rollover area and the rollover image keep block so if I move one another to move. Anyone know why, or how to remedy?
    Thank you
    Peter

    Hi Peter

    While you may not use an image as part of the bearing, there should be nothing stopping you from simply insert an additional image to use for this.

    In regard to the two regions being selected and moving when you want only one, I would ask if the image is large enough that it covers part of the rollover area? If so, who could explain it. The regions should be able to be controlled independently. But sometimes, he must first reduce the size of the rollover image to make room for the rollover area, if you want to focus on that. Once done, you should be able to restore the size of the image and reposition if necessary.

    See you soon... Rick

  • What can I add two external hard drives?

    My most recent iMac has a Thunderbolt port and I have a bolt of lightning > FW 800 adapter. I have also 3 HDDs that still have firewire 800 (they actually also have USB, but it's only USB2, so this isn't an option). Is is allowed to add two (one using the FW cable adapter and then use a FW cable to connect two readers) as I sometimes like to copy things from one to the other.

    Yes, but the second disc will probably need to have its own power supply.

    (140900)

  • I want to improve memory on iMac 27 in. 3.3 GHz, 5K retina. He now has two 4G of Ram. I want to add two 8 G of ram. Should I remove two 4 G, or simply add 8G in two empty slots? Going to have a mixed match (2 of 4 and 8 s 2) in trouble?

    I want to improve memory on iMac 27 in. 3.3 GHz, 5K retina. There are now two 4 G of Ram. I want to add two 8 G of ram. Should I remove two 4 G, or simply add 8G in two empty slots? There are 4 slots for RAM.  Going to have a mixed match (two 4 and two 8) in trouble? Or will it improve my speed giving me 24G of RAM?

    It will be fine as long as they are installed in pairs (and, as long as your model can handle 8 GB modules). Just install them in the empty slots. Working with word documents or online will be not much faster - you will notice the difference in speed apps to respond, with graphic design and video editing, etc or game play. The new OS versions like more RAM, so you can not go wrong there.

    FYI, you do not run iOS on an iMac - Please edit your profile to show what OS version you are using. It helps the helpers.

  • Pavilion Beats special edition: is it possible to add two monitors to my laptop specific and if so, how?

    Hello. I have a laptop 15-p058na with 1 x HDMI, 1 x USB 2 and 2 x USB 3. Ideally, I want to be able to add two screens to display separate sites or other applications, but I don't know if this model which will support or if I can just add a monitor.  I would be grateful for any advice. Graphics card is the AMD Radeon HD8510G graphics card if that helps. Thank you very much

    Well there is only one monitor on the laptop, the HDMI port but we USB 3.0 to HDMI adapters that work quite well and will allow another monitor to add.

    https://www.Amazon.com/STARTech-external-monitor-adapter-USB32HDES/DP/B00H91BQ7Y/ref=sr_1_1?ie=UTF8&QID=1478001840&SR=8-1-spons&keywords=USB+3.0+to+HDMI&PSC=1

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Add an image in labview front

    Hello

    I need help to add an image to the front of labview and then coloring specific pixels in the image. For example, to add a photo of the road, and then color the pixels of the road in the image with different colors according to another entry.

    Can it be done in Labview?

    Thank you

    Walid

    wfarid wrote:

    Yes, there all extracted from code that can help me get started.

    Yes. They are provided with LabVIEW and are called examples. Help-> find examples. Then search in 'image '. If you have the image stored in a file then just read using one screw graphics and feed the data to the draw flattened Pixmap. Then send to an image control.

  • How can I add an image to a movie in favorite under my windows live profile things

    How can I add an image to a movie in favorite under my windows live profile things

    Hello Pratik Mazumdar,

    Thank you for your message.  Please ask your question in the Windows Live Solution Center for assistance in this matter.

    See you soon

  • I have a camera Eos Rebel T5i. Why are there two images uploaded instead of one?

    Why two images instead of one are downloaded on my computer?

    Press the Q button and select where it says L + RAW, click Select and change it to what you want.

  • How can I put two images in an image in movie maker?

    How can I put two images in a frame in moviemaker. I know they must be smaller then, how I can do it too?

    How can I put two images in a frame in moviemaker. I know they must be smaller then, how I can do it too?

    =========================================
    Try to join the pictures before you import them into Movie Maker.

    The free software IrfanView can attach photos edge to edge vertically or
    horizontally.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    IrfanView
    http://www.TechSpot.com/downloads/299-IrfanView.html
    (the name of the file is: iview427_setup.exe)

    IrfanView plugins
    http://www.TechSpot.com/downloads/472-IrfanView-plugins.html
    (the name of the file is: irfanview_plugins_427_setup.exe)

    Once you have downloaded IrfanView and
    installed... Open the program and go to...

    ... Image / create the Image of the Panorama...

    Make your choice and click on the button create an Image.

    When you see the combined images displayed
    in the display... go to... File / save as...

    Choose a location...

    Choose a format...

    Give the file a new name...

    Click on... Save...

    Also, the following links may offer a few ideas:

    ShaderTFX
    http://www.rehanfx.org/shader.htm

    Pixelan
    http://Pixelan.com/mm/intro.htm

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to put two images in an image on the windows photo gallery

    I need to know how to put two images in an image on the windows photo gallery.

    I need to know how to put two images in an image on the windows photo gallery.

    =================================
    If you say you want to join two images
    edge to edge that's easy to do with the free-
    Ware IrfanView.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    IrfanView and IrfanView plugins
    http://www.download.HR/download-IrfanView.html

    Once you have downloaded IrfanView and
    installed... Open the program and go to...

    ... Image / create the Image of the Panorama...

    Make your choice and click on the button create an Image.

    When you see the combined images displayed
    in the display... go to... File / save as...

    Choose a location...

    Choose a format...

    Give the file a new name...

    Click on... Save...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

Maybe you are looking for

  • QuickTime and UTube movies stop &amp; start. How can I re - set for internet connection is slow?

    UTube will start the movie OK but stops a few seconds, then puts in buffer the stream? and then continues. Sometimes, it does not continue. I have a relatively slow DSL - ethernet to my imac 2011 10.7.5 running. My question is: is it possible to re -

  • Hinge MacBook Air moving

    My early 2015, 13 "MacBook Air hinge / black plastic to the bottom of the screen line moves freely for a good millimetre. is that what I should be concerned or is this something that happens with all mac models? Please tell me if this is normal or no

  • synchronize the outputs digital AND digital NI USB 6343 entry

    Hello I use NI USB 6343 to fly 1 TTL devices. This device can also produce a TTL signal to indicate if the door is opened/closed. I use digital Bool 1 line 1 Point. I was able to reverse the opening/closing of the door on time. But I would like to sy

  • Pavilion convertible x 360: device won't boot to the top

    I was running a system restore, and when he got about 50% I got a message saying that there was a problem with the process. Now when I try to run the laptop, it shows the HP logo then turns off seems to restart and then repeat this loop again and aga

  • Basic Newbie question

    Hi, I am trying to add a light display to indicate when a certain part of my code is running. Basically, I need to know how to activate and deactivate a single Boolean indicator in a flat sequence structure. Any help would be appreciated. Thank you