Best way to sillo objects?

I have to sillo jewelry, so it's very hard to use the Magic Wand since there are varying colors and brightness amongst all the silver/reflective surfaces. I have always used the Pen tool to make Paths but hate that hard edge it has. What is the ultimate, best way to do this? Backgrounds need to be white. If you're thinking to answer with photograph them on a white background, this has already been done. Photographed white is not "web" white and these objects must be silloed. Thanks for any help!

Make the path.
Go to the path palette.  ( I assume you know where to find this )
select the path that you wish to apply into a selection.
In the path palette there is a sub menu with options. It's located to the upper right of the path palette.  Looks like 3 horzontal lines with a very small up side down triangle next to it. Click on that.  The sub menu comes up.
Find the command " make selection "
set the feather radius to something like 0.5.  I assume you are editing an image at 300 dpi.  if 72 dpi, lower the number by half to start out.
You may or may not want to select the Anti-aliased option depending upon the feather radius and or resolution of the file.
click ok
In the Layers palette, double click the background layer then click OK.
At the bottom of the Layers palette there is a little icon that is a box with a circle in it.  Click on that. This will create the mask.
Zoom into the image and evaluate the edge softness.
If its not good enough, rince and repeat until you get the edge you want.

Similar Messages

  • GAME: best way to MOVE objects: tweenlite them or increment their x any values

    As the title says, need best way to move objects in game. Always used x and y increments. Read about tweenlite and use it, very easy. So which do I use taking into account that these games can be ported to mobiles ie: which is more optimized. It's a platform type game. I will have
    a. A little girl that walks and climbs
    b. Little platforms that slide from side to side - you have to jump on them
    c. The little girl will jump
    d. Little baddies will fly around the screen.
    ALSO, as the girl jumps I would like it to look natural
    a. Gravity as she falls down
    b. The correct increment on x and y as she jumps.
    Shouldn't their be an actionscript 3 games forum . anybody know a good site for that?
    Cheers in advance

    OK - I get the message. I should increment x.
    I must have phrased the question wrongly. I'm just looking at optimization techniques so when games go on mobile they work OK.

  • Best way to remote objects...

    What is my best option for hosting objects and accessing/instantiating them using Java SE and potentially other Java-based platforms (CDC, CLDC)?
    What I've been trying to do so far is set up some system where a Java SE program can connect to an application server and obtain references/instantiate objects on the server and call methods of those objects.
    The biggest struggle for me is understanding if JNDI is what I need to use for all this, on top of other questions.
    Am I going about this the wrong way? Is there something else I should be doing?
    I welcome any further questions or suggestions.

    Well...maybe, but also not quite?
    Is there any way I can get a more specific response? Is there any way I can run a server that hosts instances of objects? What is the simplest way I can instantiate and communicate with remote objects?
    Having a different stub for every class I create just seems like wasted effort and there are much more clumsy platforms out there that support very simple remote object & class features...

  • Best way to creat Objects

    Hi gurus,
    I am in a process of converting CRs to Universe. Based on the business area , I gathered a set of reports that to be converted to Universe. Joining of tables is almost done. Now I am in process of creating objects.
    As we are going in the Bottom- Up approach as the reports are already existed in CR. After analyzing couple of reports, I found lot of formula fields for one report which are in a set of ranges like 0-10, 10-20, 20-30 etc.., with Grand totals, %.
    Should I create each and every object like 0-10, 10-20 ( for one report, I have 50+ formula fields).
    Please suggest me the best way to go or any suggestion the Webi reporting part.
    Thanks
    RUC

    I would recommend creating object with formulas at universe level using universe functions and using Database functions. This will be very useful to create reports on demand. also give flexibility to user to create ad-hoc report.
    Also for specific formulas (which are very report specific) you can create them in universe and hide it from users if you don't want user to use them in ad-hoc reporting.
    for formulas like (Bucket)
    0-10, 10-20, 20-30
    you can use CASE WHEN functionality of database (I am assuming oracle here)
    like
    CASE
    WHEN [Obj] > 0 and [obj] < 10 then '0-10'
    END
    I hope this helps.

  • Best way to store objects' properties and later remake those objects?

    I want to create a bunch of objects, set their properties and then save that so on restart, the objects can be reconstituted. Is serialization the best way/ Some other way? I want to store them in XML so I can also create a GUI to show the objects stored.

    JoachimSauer wrote:
    6tr6tr wrote:
    I want to create a bunch of objects, set their properties and then save that so on restart, the objects can be reconstituted. Is serialization the best way/ Some other way?Serialization is definitely one way to do that.
    I want to store them in XMLUse JAXB or XMLEncoder/XMLDecoder.
    so I can also create a GUI to show the objects stored.What does a GUI have to do with writing XML? I don't see how that's in any way related.Thanks. What I meant was that I want to have a JTree populated easily with that info and I know there's good support for populating a JTree with XML.

  • Best way for Java objects to relate to DB tables

    When creating a Java app which relies on a backend DB, it is convenient (and necessary) to create Java classes which relate to the data in those tables. However with a normalised set of tables, should the Java classes relate purely to the tables, or the "view" of the un-normalised data?
    e.g. (rough example of what I mean)
    CREATE TABLE teams
    team_id INTEGER NOT NULL PRIMARY KEY,
    team_name CHAR(50)
    CREATE TABLE users
    user_id INTEGER NOT NULL PRIMARY KEY,
    user_name CHAR(50),
    team_id INTEGER REFERENCES teams(team_id)
    Now, the Java class for a user could have either have a variable (e.g. teamName) declared as an int (to fully reflect the table design) or a String (to represent the "view" of the data). I know that views can be used etc. and in this example that would be very easy � I am just using these simplified tables as an example.
    I have tried both and both have pitfalls. For instance, when getting the data from the database, it is very easy to create the object from the DB if it reflects the �view� of the data. However when it comes to updating the data in the DB, you need to do a lot of other work to find out what needs updating in which tables, because the actual raw data (as will be inserted/updated with SQL commands) is not available in the Java object.
    I hope this makes sense.
    Thanks.

    My question is what is the best way to write the classes that represent the DB data. As I said this is not EJB (that would handle the DB side of things anyway), as this is overkill for this particular situation. It was more of a general question anyway - should the class contain the actual data (e.g. should the user Class contain a String for the team name (e.g. Purchasing) or a link to the underlying DB id for Purchasing.
    In reality, I would create a Team class, but the same applies - should the Java Class ever contain any relationship to the underlying DB. I think not, but it seems inefficient to have to continually query the DB to find out information we already have.
    Apologies if I am not explaining this very well.

  • Best way to write objects in an xml and send the file?

    hello all
    i am making some objects, which i conver to xml using the XStream and then i am saving them to a file, call a function to send the file to a servant (basically i do this by sending bytes and this may be the problem). In the servant i take the data i write them to a file and then i read them again to make them objects...
    i have the following code in the client
            XStream xstream = new XStream(new DomDriver());     
            xstream.alias("Jobb", WorkflowFramework.Jobb.class);
         String xml = xstream.toXML(translation);
               FileWriter fw = new FileWriter("translation.xml");
               ObjectOutputStream out = xstream.createObjectOutputStream(fw);
               out.writeObject(new Jobb("ougk2", "Walnes",null));
               out.close();
               File file=new File("translation.xml");
               byte buffer[]=new byte[(int)file.length()];
               try {
                    BufferedInputStream input=new BufferedInputStream(new FileInputStream("translation.xml"));
                    input.read(buffer,0,buffer.length);
                    input.close();
               } catch(Exception e) {
                      System.out.println("Error: "+e.getMessage());
                       e.printStackTrace();
               theRemoteObjRef.translationService(theCallbackObjectRef, buffer);i write the file and then i read it so as to have a buffer of bytes (there should be a better ways..)
    the last line sends an objectRef (we dont care about that) and the file in bytes to a server (to be specific to a servant of a server)..
    in the servant i do the following
    public void translationService(TheCallbackInterface objRef, byte data[]){
              try{
                        File file = new File("translation2.xml");
                    BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream("translation2.xml"));
                  output.write(data, 0, data.length);
                  output.flush();
                  output.close();
              } catch(Exception e) {
                        System.out.println("Error: " + e.getMessage());
                        e.printStackTrace();
               XStream xstream = new XStream(new DomDriver());
               try { // If an error occurs, go to the "catch" block
                    FileReader fr2 = new FileReader("translation2.xml");
                    ObjectInputStream in = xstream.createObjectInputStream(fr2);
                    Jobb newJob = (Jobb)in.readObject();
                   System.out.println(newJob.getObjServerRef());
                   System.out.println(newJob.getForTranslation());
                   System.out.println(newJob.getTranslated());
                    }catch (Exception e) {  
                         System.err.println("File input error"+e);
                    Jobb testJob=new Jobb("ougka","mpougka","falalala");
                    System.out.println(testJob.getObjServerRef());
                       System.out.println(testJob.getForTranslation());
                    System.out.println(testJob.getTranslated());
    the problem is that in the first group of System.out.println i get the error File input errorcom.thoughtworks.xstream.mapper.CannotResolveClassException: Jobb : Jobb
    but the second group of printlns, prints the correct results...
    do you know what is the problem? Why can i read the content of the file and get the objects from there?
    do you have any suggestions of writing and reading the file in an another way or to send it by NOT using a bytes array?
    do you have an alternative way of making the xml file?
    many thanks!

    Hi,
    I would suggest to reconsider building of your document so that it doesn't contain duplicates if you don't need them. And it doesn't have much to do with DB XML then.
    Also you could insert your document with duplicates and use XQuery Update facilities to delete undesirable nodes.
    Vyacheslav

  • Best way to instantiate objects in one to one mapping.

    Hi,
    I have two objects with this basic definition:
    @Entity
    @Table(name="siteuser")
    public class SiteUser {
         @Id
         @GeneratedValue(strategy=TABLE, generator = "UserAndSiteGen")
         @TableGenerator(name="UserAndSiteGen", table = "userandsitegen")
         long id;
    @OneToOne(cascade=ALL)
         UserPointSummary pointSummary;
    @Entity
    @Table(name="userpointsummary")
    public class UserPointSummary {
         @Id
         @Column(name = "USERID", insertable=false, updatable=false)
         long userID;
         @OneToOne
         @JoinColumn(name="USERID")
         SiteUser user;
    Since the UserID is generated but is the primary key of the summary object is it possible for me to create the userpointtransaction for a user in a single transaction? If so how?
    Even doing it in two separate transactions it doesn't seem to work. I tried having a constructor:
         public UserPointSummary(SiteUser user)
              this.user = user;
    and code:
         user.setPointSummary(new UserPointSummary(user));
         service.persistSiteUser(user);
    But I keep getting an error when trying to insert the UserPointSummary row that UserID cannot be null...
    Please let me know if you have suggestions on the right way to approach this.
    Thanks.

    I think the issue was just that I didn't have one of the two set the mappedBy attribute. Now things seem to be working.

  • Best way to send objects to server and recreate stage?

    i want to send an object and its properties (that have been manipulated) to my server. I then plan to re-create this object and automatically create a screenshot of the object (i do not want to do this client side). i'm planning to use POST and some php for each property as its changed, and then load this data into a server side as3 script. i would like this server side script to take the object in automatically, and create an image server side - is there anyway to doing all this while not prompting for any input (from what i've learnt, flash needs a prompt before saving a file)? i haven't used flex, could it be used here?
    Is there any better way to do this? i'm open to any suggestions!

    yes, that is what i was planning to do. except, the saving of images to the server would have to be done manually ? can i automate it somehow? call an as3 file to do it. kinda like an executable? that may save me a lot of mouse clicking...
    this is my first flash php program. i see you have some sort of flash consulting thing. my project is really small, like 100 lines of code. when i am done, i wouldn't mind you looking through it to give me some tips...  how much do you usually charge if you don't mind me asking?

  • Best way to MouseDrag multiple objects around a scene.

    So I am having a little trouble trying to drag 3 Box's in a scene.
    Originally I had it set up where each was relocated to an x,y translated Z and set to a HWD. Then I figured I would, instead of the mouse click on the box itself, be in the root. From there I would look through all of the root.getChildren() then made that see if it contained the x,y position.
    Then from knowing which of my root Children I clicked I did root.getChildren.get(current).setOnDragged to figure out which one was dragged.
    The code itself worked except for finding which box I was on.
    The issue I find is that I onyl have getX, getSceneX, and getScreenX. X, and SceneX produce the same value, and ScreenX is useless. I tried then to do event.getX() - root.getLayoutX() to make the contains function to work, but it wasn't working and would require me to change up more things. getLayoutX() was = 0 since I didn't set the root location, only the locations of the box's.
    From there I kept wondering if there was a better way. Then I thought maybe to loop through every element in my root or in an arrayList(Which is what I used, but realized the root.getchildren should work like the original) but the problem is it keeps only registering the last one in the list, so it just loops and that's it.
    So what I want to know is, what would be the best way to figure out what object I'm in?
    Originally I use the contains(Swing) but Swing is different, and now especially since we can register mouseEvents to each node, shouldn't we know exactly which one we are on, just by looping through each of them? I figure that's easier than having to check every single mouse position contained within, especially if I have 10000 things to check?
    Edited by: KonradZuse on Mar 18, 2013 8:05 PM

    I slightly modified your code for 3D.
    - added a pointlight
    - added a phong material
    - the rectangle changed to a box
    - the circle changed to a sphere
    - add scene.setCamera(new PerspectiveCamera(false));
    Without the last line it is not working.
    I tested it with javafx8.0 build 80 Netbean7.3
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.scene.shape.Polygon;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.PerspectiveCamera;
    import javafx.scene.PointLight;
    import javafx.scene.paint.PhongMaterial;
    import javafx.scene.shape.Box;
    import javafx.scene.shape.DrawMode;
    import javafx.scene.shape.Sphere;
    public class DraggingShapes3D extends Application {
        @Override
        public void start(Stage primaryStage) {
            PointLight pointLight = new PointLight(Color.ANTIQUEWHITE);    
            pointLight.setTranslateX(800);    
            pointLight.setTranslateY(-100);  
            pointLight.setTranslateZ(-1000);
            PhongMaterial material = new PhongMaterial();
            material.setDiffuseColor(Color.LIGHTGRAY);
            material.setSpecularColor(Color.rgb(30, 30, 30));
            Box box = new Box(200, 200, 200);
            box.setMaterial(material);
            box.setTranslateX(100);
            box.setTranslateY(100);
            box.setDrawMode(DrawMode.FILL);
            box.addEventHandler(MouseEvent.ANY, new DragShapeHandler());
            Group root = new Group();
            Sphere sphere = new Sphere(100);
            sphere.setTranslateX(400);
            sphere.setTranslateY(100);
            sphere.setMaterial(material);
            sphere.addEventHandler(MouseEvent.ANY, new DragShapeHandler());
            root.getChildren().addAll(box, sphere);
             root.getChildren().addAll(pointLight);
            Scene scene = new Scene(root, 800, 800, true);
            scene.setCamera(new PerspectiveCamera(false));
            primaryStage.setScene(scene);
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);
        class DragShapeHandler implements EventHandler<MouseEvent> {
            private double sceneAnchorX;
            private double sceneAnchorY;
            @Override
            public void handle(MouseEvent event) {
                if (event.getEventType() == MouseEvent.MOUSE_PRESSED) {
                    sceneAnchorX = event.getSceneX();
                    sceneAnchorY = event.getSceneY();
                } else if (event.getEventType() == MouseEvent.MOUSE_DRAGGED) {
                    double x = event.getSceneX();
                    double y = event.getSceneY();
                    Node node = (Node) event.getSource();
                    node.setTranslateX(node.getTranslateX() + x - sceneAnchorX);
                    node.setTranslateY(node.getTranslateY() + y - sceneAnchorY);
                    sceneAnchorX = x;
                    sceneAnchorY = y;
    }

  • Best way to implement application level persistant objects?

    I'm designing a J2EE application and want to create some objects that represent lookup tables in the database. I would like these to be static objects that get created either at application startup or the first time they are called and remain in application scope globally for all users/sessions. These are objects that contain lists used for drop-downs/listboxes. I don't necessarilly want to take up unecessary memory
    and take a performance hit for each session by creating them new for each session. The question is what is the recommended design for this scenario? Should these be implemented as static Stateless Session beans with an application scope? Are there any examples on the best way to do this in J2EE?
    Thanks.

    You can simply (and properly) implement the Singleton pattern. Then multiple threads can all query the cached reference table values in the Singleton. Now, I know, that Singletons and J2EE are supposedly no-no's, but sometimes the easiest and simplest solution really is the best one. Perform the database query at startup in a static initializer. Then ensure that you do not have mutator methods (e.g., removeXXX(), setXXX(), addXXX(), etc.) Only provide accessor/getter methods. If you want to be able to refresh the cache without restarting the server, you will have to think about race conditions. But if you are implementing a vanilla cache, I would go with a Singleton.
    - Saish
    "My karma ran over your dogma." - Anon

  • Best way to draw thousands of graphic objects on the screen

    Hello everybody, I'm wanting to develop a game where at times thousands of graphic objects are displayed on-screen. What better way to do this in terms of performance and speed?
    I have some options below. Do not know if the best way is included in these options.
    1 - Each graphical object is displayed on a MovieClip or Sprite.
    2 - There is a Bitmap that represents the game screen. All graphical objects that are displayed on screen have your images stored in BitmapData. Then the Bitmap that represents the game screen copies for themselves the BitmapData of graphical objects to be screened, using for this bitmapData.copyPixels (...) or BitmapData.draw  (...). The Bitmap that represents the screen is added to the stage via addChild (...).
    3 - The graphical objects that are displayed on screen will have their images drawn directly on stage or in a MovieClip/Sprite added to this stage by addChild (...). These objects are drawn using the methods of the Graphics class, as beginBitmapFill and beginFill.
    Recalling that the best way probably is not one of these 3 above.
    I really need this information to proceed with the creation of my game.
    Please do not be bothered with my English because I'm using Google translator.
    Thank you in advance any help.

    Thanks for the information kglad. =)
    Yes, my game will have many objects similar in appearance.
    Some other objects will use the same image stored, just in time to render these objects is that some effects (such as changing the colors) will be applied in different ways. But the picture for them all is the same.
    Using the second option, ie, BitmapDatas, which of these two methods would be more efficient? copyPixels or draw?
    Thank you in advance any help. =D

  • What is the best way to implement a cluster-wide object ID generator?

    What is the best way to implement a cluster-wide object ID generator?

    What is the best way to implement a cluster-wide
    object ID generator?Always use 3 because it is prime.
    Alternatively more information about the system and the needs of the system might prompt alternative ideas some of which are likely to be better than others for your particular implementation and system constraints.

  • Best way to do a Object which holds a collection of another object type.

    I'm writing a caching object to store another object. The cache is only valid for a session, so I want a store the data in a nested table.
    I have try to simplify my example down to its core.
    How do I make this work and what is the best to index the index the items stored for fastest retrieval.
    CREATE OR REPLACE TYPE ty_item AS OBJECT (
    id_object VARCHAR2 (18),
    ORDER MEMBER FUNCTION compare (other ty_item)
    RETURN INTEGER
    CREATE OR REPLACE TYPE BODY ty_item
    AS
    ORDER MEMBER FUNCTION compare (other ty_item)
    RETURN INTEGER
    IS
    BEGIN
    IF SELF.id_object < other.id_object
    THEN
    RETURN -1;
    ELSIF SELF.id_object > other.id_object
    THEN
    RETURN 1;
    ELSE
    RETURN 0;
    END IF;
    END;
    END;
    CREATE OR REPLACE TYPE ty_item_store AS TABLE OF ty_item;
    CREATE OR REPLACE TYPE ty_item_holder AS OBJECT (
    CACHE ty_item_store,
    MEMBER FUNCTION get (p_id_object IN VARCHAR2)
    RETURN REF ty_item,
    MEMBER FUNCTION find (p_id_object IN VARCHAR2)
    RETURN REF ty_item,
    MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    CREATE OR REPLACE TYPE BODY ty_item_holder
    AS
    MEMBER FUNCTION get (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    rtn REF ty_item;
    BEGIN
    rtn := find (p_id_object);
    IF rtn IS NULL
    THEN
    rtn := ADD (p_id_object);
    END IF;
    RETURN rtn;
    END;
    MEMBER FUNCTION find (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    rtn ty_item;
    BEGIN
    SELECT VALUE (ch)
    INTO rtn
    FROM CACHE ch
    WHERE ch.id_object = p_id_object;
    RETURN rtn;
    END;
    MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    item ty_item;
    BEGIN
    item := ty_item (p_id_object);
    INSERT INTO CACHE
    VALUES (item);
    END;
    END;
    /

    Best way to do a Object which holds a collection of another object type. The best place for data in a database is.. no real surprise.. in tables. If that data is temporary of nature, global temporary tables cater for that.
    Storing/caching data using PL/SQL requires very expensive private process memory (PGA) from the server. This does not scale.
    I'm writing a caching object to store another object. Irrespective of how l33t your haxor skillz are, you will not be able to code as a sophisticated, performant and scalable PL/SQL data cache, as what already exists (as the database buffer cache) in Oracle.
    The cache is only valid for a session, so I want a store the data in a nested table.Not sure how you take one (session local data) to mean the other (oh, let's use a nested table).
    Session local data can be done using PL/SQL static variables. Can be done using name-value pairs residing in a context (Oracle namespace). Can be done using a global temporary table.
    The choice is dependent on the requirements that need to be addressed. However, the term +"caching+" has very specific connotations that say that a global temporary table is likely the best suited candidate.

  • Best way to validate multiple entity objects with each other

    I have the following scenario.
    There is one entity object with the following fields.
    Name
    Start Date
    End Date
    My requirement is to validate the dates in the entity do not overlap.
    What is the best way to achieve the same.
    This validation should be fired when we commit, since the user should be allowed to change the dates freely between entities.(Validation should not kick off when the current row changes)
    Thanks

    For this to achieve there is a concept called Effective Dated Entity Objects in Oracle ADF.
    Official ADF Documentation: http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcentities.htm#ADFFD20110
    Some blogs to help you
    http://one-size-doesnt-fit-all.blogspot.co.uk/2008/11/jdev11g-new-feature-effective-dated.html
    http://adfblogs.blogspot.co.uk/2011/09/understanding-effective-dated-entities.html
    Regards,
    Peddi.

Maybe you are looking for

  • Need help for Format HD

    Hi I need Help for Formating HD so Wat Key need hold on start up for format HD I apprciated you Help

  • How do I download adobe Flash Player?

    It won't load. At one poit it said temporary disconect anti virus soft wasre > I did. It goes to run I click then nothing, over and over. someone tell me whats wrong, and how to do this in the most elementary of terms.

  • Derivation of Baseline Date for Invoices

    Hi, When parking an invoice in FB60, the baseline date is automatically derived based on the payment terms. For example, it is configured to follow the document date. Now, when I edit the document date of the invoice in FBV2, the baseline date is not

  • How to set a database name for fetching metadata?

    How can I tell an already-existing Connection what its database should be, in such a way that I can successfully get MetaData from the connection? If I use the following code, everything works fine:      Connection connection;      DatabaseMetaData m

  • How to use messages?

    i just downloaded mountain lion and i use AIM. I cant see any of my buddy lists, my screen looks like this. when i try to video chat with friends it goes straight to a facetime camera. how do i change this?? please help!!