How to make a some object or picture got to a color

hi i am VERY new at adobe flash an i am trying to get a layer or a symbol or something (im not sure what the objects in flash are called) to go to a given color does anyone know how to do this? im trying to track motion from a webcam feed with a person wereing a blue colored shirt. thanks.

you can use the draw() method of the bitmapdata class to create a bitmap of the camera input and then loop through the bitmapdata's pixels using getPixel() or getPixel32() to find the x,y of the pixels that meet your criteria.

Similar Messages

  • How to make a christmas newsletter with pictures

    how do I make a christmas newsletter with pictures all around.  I want to arrange the pictures.  the collage does it but I want to place them.

    Click File >> Open and select all of your photos
    That will add them to the project bin
    Then select File >> New >> Blank File
    Select background color White (or whatever you prefer) and add your width and height for your final image (set resolution 72 for web usage or 240 to 300 for printing) then click OK
    In the project bin click your first photo and drag it up into the main window on top of your new background.
    Click on the move tool and click in the center of the photo and drag to arrange it where you want on the background - you can hold down the shift key to maintain original proportions whilst dragging the corner handles of the bounding box to get the size you want.
    Do the same with the next photo (drag it up into the main window) and use the move tool to position it. Then continue with each image.
    Finally Click Layer >>Flatten image and save as jpeg. (Save as PSD if you want to preserve the layers for editing again)
    N.B. as you add images they get dropped in the center. So you need to use the move tool to drag them apart. Click in the middle of one and move it around, and then the others until you get them positioned as you want.
    When you click again with the move tool a bounding box appears around the image and you can drag out the corner handles to re-size your photos. Hold down the shift key when dragging the corner handle and that will maintain the proportions of the original.
    Finally click Layer >>Flatten Image and save your collage - you may then want to use the crop tool to cut away any surplus white canvas, and then re-save.

  • How to make look an object like a piece of metal?

    hellow guys....i have a question...im kind of new in illustrator and would like to make a plane object to look like a shinning piece of metal with 3D effect....can any one tell me how to achive this? thanks in advance!

    You apply gradients of all sorts using the normal gradient tool, gradient meshes, blends and combine it with other effects like edge bevels.
    Mylenium

  • How to make only some open Invoices visible in Incoming Payments Wizard ?

    I want only to make only some Open Invoices visible in Incoming Payment. Can i use series (Document Numbering) ? Lets say I have SBO in 2 cities and want to user of city A only se open invoices of city A in incoming Payments , and user of city B to see only invoices created in city B . Any ideas ?

    You may use Project code to reach your goal.
    Thanks,
    Gordon

  • How to make a Graphics2D object from a Graphics object?

    Hallo !
    Graphics g = pj.getGraphics();
    Graphics2D g2 = (Graphics2D) g;I get an Exception as follows:
    java.lang.ClassCastException: sun.awt.windows.WPrintGraphicsWrapper
    Is there an other possibility to to make a Graphics2D Object ? Or can I repair the error on an other way?
    Thank you Wolfgang

    Yes JBuilder makes a reference to this line.
    pj is a PrintJob.
    The only lines in this method for test are
    PrintJob pj = Toolkit.getDefaultToolkit().getPrintJob(p,"PrintWindow",null);
    Graphics g = pj.getGraphics();
    Graphics2D g2 = (Graphics2D) g;
    pj.end();Exception occurred during event dispatching:
    java.lang.ClassCastException: sun.awt.windows.WPrintGraphicsWrapper
    Wolfgang

  • How to Make a Batch of Thumbnail pictures?

    Hi,
    Does anyone know how to make a batch of thumbnails from a number of photos in iphoto?
    If iphoto doesnt have this functionality then I've found a few apps that do this.. any recommendation which is the best one?
    http://cocothumbx.en.softonic.com/mac
    http://waterthumber.en.softonic.com/mac
    http://www.macupdate.com/app/mac/11898/thumbsup
    Thanks,
    Steve

  • How do I view the songs on my iPod and how do I delete some songs and pictures that are on my iPod through the new iTunes

    I just bought an iPod off of a friend andher ex put alot of terrible music and pictures on it and I want to delete some music but I can't see what is on The iPod through the iTunes so I can erase music. So all I wanna know is how do I see and erase the stuff on my iPod using iTunes on my lab top

    If you have iTunes 11 on your laptop then you can enable the left-hand sidebar on it via option-command-S on a Mac, control-S on a PC. You should then be able to connect the iPod and it should show on that left-hand sidebar, and underneath it should be a Music section e.g. similar to :
    Select that and the music should be shown on the right-hand side of iTunes, which you can then use to delete it.
    You should be able to remove all content from the iPod directly on it via Settings > General > Reset > Erase All Content And Settings, as any apps etc that are on it will be tied to the previous owner's id - that will also remove any photos from the iPod

  • How to make "check for Objects" YES

    Hi I am trying to create installation scripts for supporting objects.
    When i click on app builder- app- supporting objects. I see check for supporting objects is "NO" i need to make it "YES" Please let me know how it should be done
    Thanks

    You would have to enforce this at the application level. You can get the IP address of the current client from the framework - IF_WD_APPLICATION method GET_REMOTE_ADDRESS.
    You could write an entry with the IP address into a temporary table during WDDOINIT.  You could clear the entry in the WDDOEXIT.  Also during the WDDOINIT, check to see if there is already an entry for this IP address.  If so, then fire an exit nagivation plug to a static MIME object or BSP page that explains why the user can only be logged in once.

  • How to make a class object  from a string representation of the same

    i have the name of a class whose object i want to make in the form of a string i.e. String s="S1"; i get this name after some prosessing. so what i want to do is to create an object of S1 which is actually one class that i have implemented.plz hlp. it is urgent.thnx in advance.

    reflection api...
    see java.lang.Class. Read the api docs.
    mostly, u need to do the following:
    Class myClass = Class.forName(s1);
    Object x = myClass.newInstance();
    reg
    s giri

  • How to make a callable object daemon

    Hi Gurus,
    I have a class which implements Callable interface and I am using thread execution framework to execute this object. My requirement is to make this thread a daemon thread. I would like to know how can i do this because setDeamon(True) doesnt exist in Callable interface.
    Thanks

    If you know that a method from your object is being called in the thread which you want to make daemon, try
    Thread.currentThread().setDaemon(true);

  • How to make a custom object function the same as the Competitor and Partner

    Would like to use a custom object to function the same way the Competitor and Partner objects work in CRM. I have not be able to accomplish this. Do you know if it is possible? Can the specialized functionality of the account relationships fields and layouts be leverage with a custom object?

    Hi Peter. Thanks for the reply.
    I assumed that if I used the project style sheet during the export, Word would convert the style so that it looked the same as in the HTML. Is that a bad assumption? I'm currently not mapping to any template equivalent for these message box styles. I did try it as one of my attempts, but I couldn't figure it out. It never seemed to take the style in the .dot.
    Anyway, if I use just 1 style, such as just the MsgBox, I obviously don't get the white paragraph between the title and message. That white paragraph comes from the first <p> tag in the MsgBox style. But I need to have the <p> tags in there because they're better for our localization process than line breaks.
    I did do some tweaks that made it look better. Basically I structured it so that the MsgBoxTitle div is now inside the MsgBox div. Something like this:
    <div class="MsgBox">
        <div class="MsgBoxTitle">PC-DMIS MESSAGE: </div>
        <p>Please do the following steps in the indicated order.</p>
        <p>1. Remove the current SH-1/2/3 stylus.</p>
        <p>2. Attach the SHSP (Stylus Holder Setting Piece).</p>
        <p>3. Jog the probe to a safe location with a clear line of approach
         to the port(s) being calibrated.</p>
        <p>4. Then click OK.</p>
        <p>After you click OK the machine will begin DCC measurement.</p>
    </div>
    And then I adjusted my styles borders, padding, and thickness. That helped it look more connected, but still doesn't look quite right:
    Would love to get rid of that white space after the title.
    If you have time, I would be interested in a more detailed example of how you did it.

  • How to make a Window object Transparent

    hi all,
    how can i make an object of Window Class transparent.
    please help me out friends.

    This is a transparent window with an orange in it:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.peer.*;
    public class Tw extends JWindow implements FocusListener, MouseMotionListener, MouseListener
         Image     img,tim;
         Graphics  tig;
         Point     mp;
         Robot     r;
    public Tw()
         setBounds(170,170,100,100);
         try
              r = new Robot();
         catch(AWTException awe)
              System.out.println("robot excepton occurred");
         capture();
         addMouseMotionListener(this);
         addMouseListener(this);
         addFocusListener(this);
         setVisible(true);
    public void mouseDragged(MouseEvent m)
         if (mp == null) return;
         Point p = m.getPoint();
         int x = getX()+p.x-mp.x;
         int y = getY()+p.y-mp.y;
         setLocation(x,y);
         paintP(getGraphics());
    public void mouseMoved(MouseEvent m)
    public void mouseClicked(MouseEvent m){}
    public void mouseEntered(MouseEvent m){}
    public void mouseExited(MouseEvent m) {}
    public void mouseReleased(MouseEvent m)
         mp = null;
    public void mousePressed(MouseEvent m)
         mp = m.getPoint();
    public void focusGained(FocusEvent fe)
         setSize(0,0);
         capture();
         setSize(100,100);
    public void focusLost(FocusEvent fe)
    public void capture()
         Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
         img = r.createScreenCapture(new Rectangle(0,0,d.width,d.height));
    public void captureX()
         Rectangle rect = getBounds();
         setVisible(false);
         Thread.yield();
         Image xmg = r.createScreenCapture(rect);
         img.getGraphics().drawImage(xmg,rect.x,rect.y,rect.width,rect.height,null);     
         setLocation(rect.x,rect.y);
         setVisible(true);
    public void paint(Graphics g)
         Rectangle rect = g.getClipBounds();
         if (tim == null)
              tim = createImage(getWidth(),getHeight());
              tig = tim.getGraphics();
         if (!rect.getSize().equals(getSize())) captureX();
              else                               paintP(g);
    public void paintP(Graphics g)
        tig.drawImage(img,0,0,getWidth(),getHeight(),
                           getX(),getY(),getX()+getWidth(),getY()+getHeight(),null);
         tig.setColor(Color.orange);
         tig.fillOval(10,20,70,80);
         tig.setColor(Color.green);
         tig.fillOval(21,16,20,10);
         tig.fillOval(40,02,11,21);
         g.drawImage(tim,0,0,null);
    public void update(Graphics g)
         this.paint(g);
    public static void main (String[] args) 
         new Tw();
    }Noah

  • How to make List.contains(Object) work when you write your own .equals func

    I have a list of objcts of a class defined by me. I want to use the List.contains(String name) function to tell me if it contains an object of that name. I have overriden the .equals function as shown in [1]. I then use the code at [2] to to test it, with a bit of debugger output as shown in [3]. It is not working, my overriden method is not getting called by List.contains(String name).
    Can anyone tell me how to get this to work?
    [1]     @Override public boolean equals(Object esId) {
            if(esId.getClass().isAssignableFrom(String.class)) {
                System.out.println("object name " + this.eslimId + " compare to " + esId + " = " + this.eslimId.equals(esId));
                return this.eslimId.equals(esId);
            } else {
                System.out.println("wrong class");
                return super.equals(esId);
        }[2] graphics.getProcedures() returns private List<ProcedureGraphicSet> procedures;
    System.out.println( " graphics.getProcedures().get(0).equals(\"ESLIM_009\")= " + graphics.getProcedures().get(0).equals("ESLIM_009"));
    System.out.println( " graphics.getProcedures().contains(\"ESLIM_009\")= " + graphics.getProcedures().contains("ESLIM_009"));[3]
    object name ESLIM_009 compare to ESLIM_009 = true
    graphics.getProcedures().get(0).equals("ESLIM_009")= true
    graphics.getProcedures().contains("ESLIM_009")= false

    This is a gross violation of the contract for the equals method, and you are basically getting bitten by that. The equals method must be symmetric, meaning this must hold for all objects A and B:
    A.equals(B) == B.equals(A)This does not hold for your equals method because for any string A and custom object B:
    A.equals(B) == falseAnd, apparently, the List.contains() method is choosing to compare objects that way.
    You must iterate through the list and check the names yourself, or use some sort of functional package which provides a List.contains() type method which takes a Predicate object of some sort.
    Edited by: jtahlborn on Feb 11, 2008 11:03 AM
    Edited by: jtahlborn on Feb 11, 2008 11:03 AM

  • How do I delete some of my pictures in order  to save space on my iPhone 4s

    How do I delete pictures from my iPhone 4s in order to make more space on my phone?

    Go to your Camera Roll and press Select on the top right, from there you can select multiple photos to delete.

  • How to make a flat object look round?

    I have a round logo for a company. I want to make it look like it is painted on to a christmas tree ornament.. so it almost needs to look 3D. Can I do this in photoshop or illustrator or something? Any thoughts?

    And for the lights/shadows one can often achieve good effects just with brushing in black and white on either two Solid Color-layers or two Gradient-Adjustment Layers Clipping Masked to the content-layer.
    Or, if one has CS4, one can use the small 3D-objects-library under 3D – New Shape From Layer, map the content onto that and light it according to one’s taste.

Maybe you are looking for

  • Application Switcher Not Working correctly

    Selecting a program opens desired program properly(as displayed in Menu Bar) but will not open the corresponding program's open windows until selecting program in a Mission Control desktop. After selecting the desktop to which the program is attached

  • Lack of Service in Camp Pendleton, CA!!!!!

    I am not sure how the rest of Verizon users feel, but for me, when I am paying nearly $200 dollars a month for 2 phones, I expect a certain level of satisfaction with the service provided. The issue is that when you work and live on Camp Pendleton an

  • Any idea on how to add timesheet entries?

    I am trying to process time sheet data with Numbers. I have the "raw" data coming out of OfficeTime. I now have something that looks like this (just a simplified excerpt): 10/24/07 2:15 PM 0:30 $0.00 Design - Draft Comments on this session 10/11/07 9

  • How do you unlock iTunes?

    I was using iTunes this morning, as I have always done in the past, and when I was done I closed out of it. Later on I tried going back into it, and now I am receiving an error message stating the iTunes library is locked or I don't have permission t

  • Adobe reader 11.0.04 will not print!

    all of a sudden i am not able to print!  it says "the document could not be printed" and "no pages selected to print".  I tried using apple preview to print and a bunch of symbols and numbers came out!  help!  thx in advance!