Get vector

how to print out a vector which is an object in another vector and this object also includes a string as a field.
vector( obj1(str1,vector1), obj2(str2,vector2),,,)
can i print out vector1 and vector2 contents, they are all strings?

<>
thats what i did right now. i concatenated the string and vector of strings in the object and return it for print out. but i am not sure if it is a good solution, i am new to java and wanted to find some professional advice.
Professional advice is: mutable attributes are always private, getters and setters are to be avoided. So no "outside" object should ever know that the things in your Vector even have another Vector, let alone access it.
So letting those objects decide what they look like in String form is a good idea.
the reason is why i have chosen the vector is that the number of strings ihave to store is changing.No. My question is why you chose synchronized and outdated Vector over ArrayList. Although depemnding on what you do, a LinkedList might be even better.

Similar Messages

  • Can't get vector indexOf working

    I have a small little method that is trying to search a vector for a specific string to get its index in the vector. Below is the code for the method...
    public String getMinRoundTrip(){
              String min = "Minimum";
              int minIndex = -1;
              minIndex = received.indexOf(min);
              System.out.println("DEBUG: " + minIndex);
              String outLine = (String) received.get(minIndex);
              int firstIndex = outLine.indexOf("Minimum");
              int secondIndex = outLine.indexOf(", Maximum");
              minRoundTrip = outLine.substring(firstIndex, secondIndex);
              return minRoundTrip;
    I know that "Minimum" exists in the vector, but the index is always coming out with -1, so it is not being found. What am I doing wrong here? Any help would be appreciated.
    Thanks in advance!
    _george                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    No, it is definitely there. I have printed the vector out and could see it in the output. I have also tried searching for other words in the vector and still get -1 returned as the index value.
    This is how I am populating the vector...
    BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    String line;
    received = new Vector();
    while((line = in.readLine()) != null) {
    System.out.println("DEBUG: " + line);
    received.add(line);
    It seems to populate just fine. I don't get this?
    _george

  • How can I get vector charts from excel into illustrator?

    I have annual quality reports to do for our health trust,  the charts are created in excel by our quality team (admin) and are really poor quality  it appears to save them as rastered images (jpg or png) when it comes to commercial printing the poor quality really drags the overall annual report down.
    They are complicated charts but just need to be able to clean up the text and vector lines/symbols so they look as good as the rest of the report.  Any ideas or suggestion on how i can do this, or other programs I can load the data into to get some decent quality vectors?

    I do it all the time. Have them give you an Excel worksheet with all the charts. Make sure the font is set in Excel to something besides the default, i.e. Arial which you can easily change in AI. As for the rest as Kris says have only single filled symbols (either circles, squares or diamonds) for all data. No stroke symbols.

  • Print postscript files from flash cs3 to get vector information

    I've been playing around with some dynamic flash paintings
    and would like to export the vector information. I've tried
    choosing "print--save pdf--save pdf as postscript" I installed
    Adobe's PS drivers. I set up a virtual printer on localhost using
    AdobeDistiller. This is not working for me.
    I witnessed flash exporting vector information this way on a
    pc, but can't seem to get this working on a mac. The pc user
    downloaded and installed postscript drivers from Adobe and used a
    similar method.
    I'm on Mac OS 10.4.11
    Any ideas? This has been frustrating me for some time.
    Thanks ahead of time for the help!

    There are several ways to do this.
    The easiest one, I think, is exporting a FLV file from the Render Queue, picking in the Outpit Module one of the "Same as source (Flash 8 and Higher)" FLV presets, modified manually just to enable the "Encode Alpha Channel" checkbox.
    Because of a known limitation in the Flash authoring app, which can only handle embedded transparency information correctly when done in a certain way, it's strongly recommended after settting the FLV encoding options that you set the "Color" menu in the Output Module to "Straight (Unmatted)". Otherwise you may get ugly halos around certain elements.

  • Getting vector data in tokenizer problem...

    the data is something like this
    6045992222 black Brown James 0.0 0
    6045992100 blue Taylor Elizabeth 3.99 1 1001
    6042981234 red Pitt Brad 9.98 0 0
    6044956859 dog Spears Brittany 0.0 0
    what if the last piece of data is change into vector??like...
    6045992222 black Brown James 0.0 [0]
    6045992100 blue Taylor Elizabeth 3.99 1 [1001]
    6042981234 red Pitt Brad 9.98 0 [1003,1004]
    6044956859 dog Spears Brittany 0.0 [0]
    how do I write my tokenizer so I can get the vector and save it into a
    vector....
    for now.. I have something like this...
    public Customer(String allData)throws NotFoundException{
      rentals = new Vector(5);
      StringTokenizer tokenizer = new StringTokenizer(allData);
      String token;
      if(tokenizer.hasMoreTokens()){
       phone = tokenizer.nextToken();
       password = tokenizer.nextToken();
       lastName = tokenizer.nextToken();
       firstName = tokenizer.nextToken();
       token = tokenizer.nextToken();
       balance = Double.parseDouble(token);
       token = tokenizer.nextToken();
       numVideos = Integer.parseInt(token);
       if(tokenizer.hasMoreTokens()){
        inputString = tokenizer.nextToken();
        temp = Integer.parseInt(inputString);
        rentals.addElement(new Integer(temp));

    You can pass StringTokenizer the characters to use during tokenization. You can include left and right square brackets in that list. Also you can make StringTokenizer send the separators back as part of the token list, if that helps your parsing.
    Or, you could use the same tokenizer, so that the final tokens could look like "[0]". Then you could use a second tokenizer to tokenize that token.

  • Get vector points out of shape layer

    Hi,
    I need to write a script which (also) saves the vector paths given as/in shape layers (Photoshop).
    What the script should provide is:
    1. Loop over all Layers
    2. Look if there is a boundary shape layer within that (main) layer with the name "mask"
    3. If so, not only save the content of this main layer (within its given rectangular bounds) as an png, but...
    4. also so save the anchor points (may not be bezier, only path of strait line segments) of the shape within the sibling shape layer "mask"
    (optional:
    also:
    5. look at a text layer "config", make it invisible before image export of the main layer (in which it is layered)
    6. save the text from this text layer in a separate text file (corresponding to the save png file)
    Many thanks for any help.
    Kind regards
    Joe

    I had made some mistakes in the Script – more than one »Bitmap X« layers in the LayerSet would have been ignored and if the order of the »Bounding Shape« and »Image« LayerSets were switched it would result in erroneous output …
    Hopefully this version is more thorough:
    // saves clipped pngs of certain layers and the vector path info of certain other layers;
    // bitmap layers have to be named »Bitmap« + number, and reside in »Image« in »Object« + number;
    // vector layers have to be named »Form« + number, and reside in »Bounding Shape« in »Object« + number;
    // 2011, use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.POINTS;
    // thanks to xbytor;
    var docName = myDocument.name;
    if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
    else {var basename = docName};
    try {var docPath = myDocument.path}
    catch (e) {var docPath = "~/Desktop"};
    // png options;
    var webOptions = new ExportOptionsSaveForWeb();
    webOptions.format = SaveDocumentType.PNG;
    webOptions.PNG8 = false;
    webOptions.transparency = true;
    webOptions.includeProfile = false;
    webOptions.optimized = true;
    // duplicate image;
    var theCopy = myDocument.duplicate ("copy", false);
    // get the layers;
    var theLayers = collectSpecialLayersB(theCopy);
    // create array for bounds;
    var theBoundsArray = new Array;
    // process the layers;
    for (var m = 0; m < theLayers.length; m++) {
         var theArray = theLayers[m];
    // process the bitmap layers;
         for (var n = 0; n < theArray[1].length; n++) {
              var theLayerSet = theArray[0];
              var theBitmapLayer = theArray[1][n];
              var theNumber = theBitmapLayer.name.slice(7, theBitmapLayer.name.length);
              theBoundsArray.push([theBitmapLayer.name, theBitmapLayer.bounds]);
              theBitmapLayer.visible = true;
              var theParent = theBitmapLayer.parent;
              while (theParent != theCopy) {
                   theParent.visible = true;
                   theParent = theParent.parent
              theCopy.activeLayer = theBitmapLayer;
              hideOtherLayers();
              theCopy.trim();
    // save png;
              var theFile = new File(docPath+"/"+basename+"_"+theLayerSet.name+"_"+theBitmapLayer.name+".png");
              theCopy.exportDocument(theFile, ExportType.SAVEFORWEB, webOptions);
    // check for a form-layer with the corresponding number;
              for (var p = 0; p < theArray[2].length; p++) {
                   try {
                        var pathLayer = theArray[2][p];
                        var thisNumber = pathLayer.name.slice(5, pathLayer.name.length);
                        if (Number(theNumber) == Number(thisNumber)) {
    // get the path info;
                             theCopy.activeLayer = pathLayer;
                             var thePath = theCopy.pathItems[theCopy.pathItems.length - 1];
                             var thePathArray = collectPathInfo (theCopy, thePath);
    // save path-info;
                             writePref(thePathArray, docPath+"/"+basename+"_"+theLayerSet.name.replace(" ", "-")+"_"+pathLayer.name+"_path.txt");
                   catch (e) {};
              theCopy.activeHistoryState = theCopy.historyStates[0];
    alert (theBoundsArray.join("\n\n"));
    // close the opy;
    theCopy.close(SaveOptions.DONOTSAVECHANGES);
    app.preferences.rulerUnits = originalRulerUnits;
    ////// function to collect path-info as text //////
    function collectPathInfo (myDocument, thePath) {
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.POINTS;
    var theArray = [];
    for (var b = 0; b < thePath.subPathItems.length; b++) {
         theArray[b] = [];
         for (var c = 0; c < thePath.subPathItems[b].pathPoints.length; c++) {
              var pointsNumber = thePath.subPathItems[b].pathPoints.length;
              var theAnchor = thePath.subPathItems[b].pathPoints[c].anchor;
    //          var theLeft = thePath.subPathItems[b].pathPoints[c].leftDirection;
    //          var theRight = thePath.subPathItems[b].pathPoints[c].rightDirection;
    //          var theKind = thePath.subPathItems[b].pathPoints[c].kind;
    //          theArray[b][c] = [theAnchor, theLeft, theRight, theKind];
              theArray[b][c] = [theAnchor];
    //     var theClose = thePath.subPathItems[b].closed;
    //     theArray = theArray.concat(String(theClose))
    app.preferences.rulerUnits = originalRulerUnits;
    return theArray
    ////// function to write a preference-file storing a text //////
    function writePref (theText, thePath) {
      try {
        var thePrefFile = new File(thePath);
        thePrefFile.open("w");
        for (var m = 0; m < theText.length; m ++) {
          thePrefFile.write(theText[m])
        thePrefFile.close()
      catch (e) {};
    ////// hide other layers //////
    function hideOtherLayers () {
    // =======================================================
    var idShw = charIDToTypeID( "Shw " );
        var desc2 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var list1 = new ActionList();
                var ref1 = new ActionReference();
                var idLyr = charIDToTypeID( "Lyr " );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idTrgt = charIDToTypeID( "Trgt" );
                ref1.putEnumerated( idLyr, idOrdn, idTrgt );
            list1.putReference( ref1 );
        desc2.putList( idnull, list1 );
        var idTglO = charIDToTypeID( "TglO" );
        desc2.putBoolean( idTglO, true );
    executeAction( idShw, desc2, DialogModes.NO );
    ////// function to collect special layers //////
    function collectSpecialLayersB (theParent, allLayers) {
         if (!allLayers) {var allLayers = new Array};
         for (var m = theParent.layers.length - 1; m >= 0;m--) {
              var theLayer = theParent.layers[m];
    // apply the function to layersets;
              if (theLayer.typename == "ArtLayer") {
    // get the bitmap-layers;
                   if (theLayer.name.match(new RegExp('^bitmap '+'[0-9]{1,3}','i')) && theLayer.parent.name == "Image"  && theLayer.parent.parent.name.match(new RegExp('^object '+'[0-9]{1,3}','i'))) {
                        allLayers[allLayers.length - 1][1].push(theLayer);
    // get the form-layers;
                   if (theLayer.name.match(new RegExp('^form '+'[0-9]{1,3}','i')) && theLayer.parent.name == "Bounding Shape" && theLayer.parent.parent.name.match(new RegExp('^object '+'[0-9]{1,3}','i'))) {
                        allLayers[allLayers.length - 1][2].push(theLayer);
    // process layersets;
              else {
                   if (theLayer.name.match(new RegExp('^object '+'[0-9]{1,3}','i'))) {
                        allLayers.push([theLayer, [], []]);
                   allLayers = collectSpecialLayersB(theLayer, allLayers)
         return allLayers

  • Re: getting vector elements while iterating

    for(i=0; i< cart.size(); i++){
       Orderline myLine = (Orderline)cart.elementAt(i); // cast back to Orderline
       myLine.getOrdernr; // or whatever
    }

    There are several methods. You could do a research for the term "vector halftone" on Google. There was an article on bittbox.com some time ago.
    They mentioned some web based services and the plugin Scriptographer
    Several solutions have also been discussed in this forum - search for posts by JET
    And then there's the plugin Phantasm CS that can also convert your raster or vector art into vector halftone dots.

  • Get vector pixel color?

    Can you grab the color of a vector item at a specific pixel without converting it to a bitmap object and then using getPixel?

    This is the only runtime vectorization package I've seen, not that I've dug too deeply.
    http://coreyoneil.com/portfolio/index.php?project=6
    The example on the website takes quite a while to process, but that's a relatively complex image. I imagine something like text would go quite a bit faster.
    Alternately you if you just want to remove some of the jaggedness you could apply a weak blur filter to the bitmap, or use Convolution filter to blur and then sharpen it.
    Take a look here for an example of what ConvolutionFilter can do:
    http://sakri.net/technology/flash/flex/convolution_filter/ConvolutionFilterExplorer.html

  • Getting vectors from a 3D model?

    I'm playing with the 3D tools in Photoshop CS5 Extended for a friend. He provided an .obj file of a tool part and it opens just fine as a complex, shaded object. Question: Is there a way to generate simple outlines of the object and export those outlines as paths to Illustrator?

    Hi,
    That is the CS6 version. In CS5, you'll want to go to 3D> Render Settings... and then turn off the Face Style options and turn on the Edge Style options. You can adjust the Crease Threshold to remove interior lines.
    Once you have the outline that you want, duplicate that 3D layer and then rasterize it. Now select all the pixels and create a path from the selection. You can then bring that path into AI for for further editing.
    regards,
    steve

  • What is the best way to get PATHS from one Photoshop psd file to another?

    Hi! New on the site, and I signed up specifically to ask the best way to import one .psd file into another, including the paths on the paths palette.
    Almost all of my Photoshop drawings make heavy use of vector paths, which I then stroke using using PS natural-media brushes and the "stroke paths" function (usually with "simulate pressure" checked.) Also, my .psd files tend to be, um, HUGE... and I typically break up a whole drawing into separate PS files and then assemble all of them into one final finished graphic.
    I have no trouble moving raster stuff from file to file. Just put all the layers I want to transfer into a group and drag the group to the other .psd. Works fine, including layer masks. But I have not found a good way to get vector paths from the Paths palette of one .psd to another. Of course I can select paths and copy them to the Win clipboard, switch to the other .psd, and paste them back in. The drawback to that method is that I lose the correct size relation between the results of previously done "stroke paths" operations (on raster layers) and the paths that generated them. Sometimes the copied-in paths are way too large, sometimes way too small, never Just Right.
    As I'm sure most of you know, if you resize an entire Photoshop document from within PS, any paths it contains are correctly resized along with everything else. That's no longer true after grouped raster layers are dragged over to another document but paths are copied and pasted in. The size connection is lost. (Location placement, too.)
    I WANT those paths! After I bring a piece of a drawing into the full final drawing, what looked good when I was working on it separately often doesn't look right any longer and I want to re-stroke those paths using different brush diameter, opacity, etc., or maybe even a completely different brush.
    I've tried bring outside .psd files in as smart objects with the Place command but either that doesn't work or I'm not doing it right. Using Place, the paths in the Placed document don't come in at all.
    I'll be very grateful for any hints or strategies any of you knowledgeable folks can give me. Thanks very much!
    Jim
    Note, PS CS3 extended on Win 7 pro.

    Denny
    1. Connect the two macs - firewire, ethernet, sneakernet as suits you - and copy the iPhoto Library Folder from Old Machine to New Machine. Drag it from Home/Pictures to the same location on the new machine.
    2. Because all the files 'belong' to the account on the old machine, you have to update the file permissions: hence Download BatchMod from
    http://macchampion.com/arbysoft/
    And apply it to the iPhoto Library Folder using the settings found here:
    http://homepage.mac.com/toad.hall/.Pictures/Forum/BatChmod.png
    (Credit to Old Toad for this one).
    Note: This must be run on the new machine after copying the files over.
    3. Then launch iPhoto on the new machine.
    Regards
    TD

  • Send Vector class to JSP and print this Vector using JSTL

    Hello All!
    I need your help to solve my question.
    I developed a Servlet + jsp application.
    I tested it in local with Apache Tomcat/6.0.20 and it works correctly.
    I write and use these classes:
    class for execute query, and including data page:
    package MySQL;
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.util.*;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    * @author initmax
    public class MySQLQuery {
        private Connection CurrentConnect; //obj for connect to databae
        private Vector VectorPageObj = new Vector(); //save array object page, after execute query
    public MySQLQuery() {}
    //constructor accept current conection database
    public MySQLQuery(Connection CurrentConnectBase)
        CurrentConnect = CurrentConnectBase;
    //method accept name table and return all info on this table
    public void SelectAllField(String NameTable)
           try
             Statement st = CurrentConnect.createStatement();
             String query = ("select * from "+NameTable);
             ResultSet resultQuery = null;
             resultQuery = st.executeQuery(query);
    //step in cycle after execution query, and create Vector object
               while (resultQuery.next())
                  GenPageMySQL PageObj = new GenPageMySQL();
                  PageObj.setId(resultQuery.getInt("id"));
                  PageObj.setTheme(resultQuery.getString("theme"));
                  PageObj.setPage(resultQuery.getString("page"));
                  VectorPageObj.add(PageObj); //add obj in tail vector
           catch (SQLException e) {
             e.printStackTrace();
        *@set the CurrentConnect
        public void setConnection(Connection CurrentConnectBase) {
             CurrentConnect = CurrentConnectBase;
        *@get Vector object "Vector created after execute query"
         public Vector getVectorPageObj(Connection CurrentConnectBase) {
             return VectorPageObj;
    }start Servlet class:
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import MySQL.*;
    public class indexServlet extends HttpServlet {
        private  String getpage;
        //Connected MySQL
        private MySQLConnect MySQLConnectObj = new MySQLConnect();
        private MySQLQuery MySQLQueryObj = new MySQLQuery();
        public void init(){
              MySQLConnectObj.DownloadDriver();
              MySQLConnectObj.Connected();
              //Use current connection, for execution query
              MySQLQueryObj.setConnection(MySQLConnectObj.GetConnection());
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException, NullPointerException  {
      //      init();
            PrintWriter out = response.getWriter();
    //GET case useer
          getpage = request.getParameter("page");
          out.print("MySQLConnectObj.GetConnection() = "+MySQLConnectObj.GetConnection()); 
    //Check curent connect to database
          if(MySQLConnectObj.GetConnection() != null)
               MySQLQueryObj.SelectAllField("up_menu");//execution query
               MySQLConnectObj.DisConnected();
                request.setAttribute("up_menu_theme",MySQLQueryObj.getVectorPageObj(null));
                RequestDispatcher Dispatcher = getServletContext().getRequestDispatcher("/WEB-INF/jsp/index.jsp");
                Dispatcher.forward(request, response);
          else if(MySQLConnectObj.GetConnection() == null){
                init() ;
            out.print("MySQLConnectObj.GetConnection() = "+MySQLConnectObj.GetConnection());
    //        MySQLConnectObj.DisConnected();
    }I forward Vector "MySQLQueryObj.getVectorPageObj(null)" to JSP, how I can print data vector using JSTL?

    your right, I learn Java however this very Interesting!
    I change code, change Vector on List
    class MySQLQyery:
    package MySQL;
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.util.*;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    * @author initmax
    public class MySQLQuery {
        private Connection CurrentConnect; //obj for connect to databae
    public MySQLQuery() {}
    //constructor accept current conection database
    public MySQLQuery(Connection CurrentConnectBase) {
        CurrentConnect = CurrentConnectBase;
    //method accept name table and link on List, after work return all info on this table inside List
    public List<GenPageMySQL> selectAllField(String NameTable, List<GenPageMySQL> ListPageObj) {
           try {
             Statement st = CurrentConnect.createStatement();
             String query = ("select * from "+NameTable);
             ResultSet resultQuery = null;
             resultQuery = st.executeQuery(query);
    //step in cycle after execution query, and create Vector object
               while (resultQuery.next()) {
                  GenPageMySQL PageObj = new GenPageMySQL();
                  PageObj.setId(resultQuery.getInt("id"));
                  PageObj.setTheme(resultQuery.getString("theme"));
                  PageObj.setPage(resultQuery.getString("page"));
                  ListPageObj.add(PageObj); //add obj in tail vector
           catch (SQLException e) {
             e.printStackTrace();
           return ListPageObj;
        *@set the CurrentConnect
        public void setConnection(Connection CurrentConnectBase) {
             CurrentConnect = CurrentConnectBase;
      List<GenPageMySQL> ListPageObj;
                //get List<RowObject>
                ListPageObj = MySQLQueryObj.getListPageObj();
      out.print("Size Page objects = "+ListPageObj.size());
                request.setAttribute("upMenu",ListPageObj);
                RequestDispatcher Dispatcher = getServletContext().getRequestDispatcher("/WEB-INF/jsp/index.jsp");
                Dispatcher.forward(request, response);string out.print("Size Page objects = "+ListPageObj.size()); == worked, I get count objects correct
    How I can output fields Object GenPageMySQL in JSTL?
    writing so:
             <c:out value="hello, Max" />
             <c:out value="${10+20/2}" />
             <c:forEach items="${upMenu}" var="Object" >     
                   <c:out value="${Object.getId}"> </c:out>
             </c:forEach>
        </body>
    </html>but get error:
    org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/index.jsp at line 36
    33:          <c:forEach items="${upMenu}" var="Object" >
    34:         
    35:                 
    36:                <c:out value="${Object.getId}"> </c:out>
    37:
    38:    
    39:          </c:forEach>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         indexServlet.doGet(indexServlet.java:49)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)How I can in output print fields my Object?
    Thank you for your help.

  • Rastorized Vector Art Becomes Translucent

    Sometimes I get vector art that appears to be completely normal, and opaque: screenshot 1
    Then I try to convert the file into a rastor image for presentation purposes and this happens:
    If you can see in the first picture, the vector art is all opaque, but in the second image, it has been rasterized, and appears to be set to a "Multiply" transparency. You may also note in Screenshot 1 that the Transparency Tab on the right specifies the vector art as normal. However, if I were to take each piece individually and rasterize it, it would look normal, as such: screenshot 3
    Whether I am saving for web & devices, exporting as a jpeg, or using Object>Rastorize (all together), this problem comes up. However, it only happens on rare occasions, and only in CMYK document color mode. I have rastorized hundreds of such images without any such problem. The graphics in the screenshot were copied directly from a file I was working with, and I was not the original creator of this art, so I don't know the process that occured to create it in the first place. However, the attribute is transferable with the eyedrop tool.
    Anybody have an explanation??

    Thank you, that was the problem. When I select the individual objects, the overprint shows up in the attributes window. Now I'm wondering how does one turn off/on overprint? I found I could dump the attribute, but then I lose my color (and that may be problematic in the future). Is there a better way to turn off the overprint?

  • Exporting as vector (in application)

    is there a way we can get vector output from a working tool of Flash (Not exporting in Flash) for example many people developed T-shirt Designing tool so how we can give vector output from that tool?

    airbob wrote:
    > Hey,
    >
    > I need images to be set as vectors for when i send them
    to get a tee shirt made. Is this possible out of fireworks?
    Yes. Choose File > Save As. Give the file a name. For Save
    as Type,
    choose Illustrator 7 AI.
    Linda Rathgeber ACE ::: PVII
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    Adobe Community Expert - Fireworks
    Design Aid Kits:
    http://www.webdevbiz.com/pwf/index.cfm

  • Vector Graphic / HPGL file processing VI ???

    Hi all,
    Is there a VI out there that will load AND interpret any common type
    of vector file format, producing an array of line start and end point
    coordinates (I only need to read lines, not shapes) ???
    I have some "motorised" hardware to control via Labview with a NI
    6025E i/o board. Now, I have routines in dev. to x/y drive the device
    but would like to do some fancy movements with it like "draw" pictures
    output from Windows graphic software. I don't need to do this
    directly, just accept a common file type.
    Obvious candidates are WMF and HPGL (used for x/y plotters). I was
    under the impression that HPGL was an ASCI "readable" language, but my
    attempts to print to file from a HP DesignJet printer driver produces
    a heade
    r mentioning HPGL*2* with some readable pen colour settings and
    the rest of the data in binary format.
    Any suggestions for a HPGL (V. 1 or 2) printer driver that produces
    "readable" ASCI would be useful as I could probably write my own
    interpret.
    Many thanks,
    Peter

    Lab Viewer wrote in message news:<[email protected]>...
    > Hi Peter,
    >
    > Try this
    > href="http://www.hamiltondesign-consulting.com/Utils.htm">HPGL to
    > Array and and
    > href="http://www.info-labview.org/the-archives/vi/lv3.1/hpglplot.zip">Array
    > to HPGL kind of libraries.
    > I didn't have the opportunity to test them, so I'm not sure about
    > related file versions.
    >
    > Hope this helps
    Thanks, I came accross this library after my post.
    I also came up with a solutions to getting vector files into Labview
    if anyone is interested:
    GhostView (the shareware viewer / front-end for Ghostscript) will
    export/conver .PS and .EPS files to the HPGL-level-1 language. This
    means I can get most vector softw
    are to print to a PS printer or
    export an EPS file and generate a HPGL-level-1 file.
    I had no luck getting the above library to work, but fortunatly the
    HPGL output of Ghostview is in a very readable ASCI format so writting
    my own interpretor with string funtions was quite stright forward.
    Many thanks,
    Peter

  • Error when trying to .clear() or .removeAllElements() in 2D vectors

    hi,
    vectorA is the big vector and it contains a vectorB.
    i will like to built a 2D vector. However it happens that when i try to use a vectorB.clear() or vectorB.removeAllElements(), so that i can push in elements again in a fresh vector. Nothing was pushed in.
    is it that i haf to
    vectorB = new Vector();
    inorder to start a new element in vectorA ??
    logic goes....
    Vector vectorA = new Vector()
    Vector vectorB = new Vector()
    cnt = 1
    //for(j = 1; j <3 ; j ++){
    do{
    vectorB.addElement(i);
    cnt++;
    }while(cnt<3)
    vectorA.addElement(vectorB);
    if i do this once , i can get
    vector[0][0] = 1
    vector[0][1] = 2
    but if i add the commented statements, i get
    vector[0][0] = 1
    vector[0][1] = 2
    vector[0][2] = 1
    vector[0][3] = 2
    vector[1][0] = 1
    vector[1][1] = 2
    vector[1][2] = 1
    vector[1][3] = 2
    do i declare vectorB in the do loop, that is create a new vector everytime or do i declare it globally?? thankz for the time pals.

    try this
    int cnt = 1;
    for(int j = 1; j <3 ; j ++){
    Vector vectorB = new Vector(2);
      for (int cnt = 1; cnt<3; cnt ++) {
        vectorB.addElement(i);
    vectorA.addElement(vectorB);
    }

Maybe you are looking for