Enlarging raster vs vector Objects

as i understand it vector objects should enlarge without losses, while
raster objects pixilate on enlargement.
In this image
http://img212.imageshack.us/img212/6178/triangleswithrastercz0.gif the
top triangle is raster. The bottom one is vector. Otherwise the two
are identical. I stretched both about 15 fold using transform. They
are identical. If you magnify them to 800 times actual size the
pixilation is the same. So, the raster image enlarged exactly the
same as the vector image??????

On Wed, 16 Apr 2008 05:15:26 -0700, [email protected]
wrote:
>Plus...don't forget that the monitor screen you're looking at...and the printer you're printing to...render their result on a grid of pixels/dots as well.
>
>The difference is that scaling a vector graphic re-renders the same mathematical formula at the new size, whereas scaling a raster requires pixel-based interpolation, which must either throw pixels away, (scaling down), or manufacture new pixels, (scaling up).
Somehow I'm not being clear. I understand the difference between
vector and raster objects/images. My point is, theoretically upsizing
a vector image should give a different (better/cleaner/smoother )
result than resizing a raster image. Yet, in my example upsampling
by a factor of 15 times showed no difference.

Similar Messages

  • Bought a new Canon MG7540 printer to replace the old HP A618. When printing vector objects from Illustrator, they look like graphics from dandy (8 bits) ... no smooth, all cubes ... if do raster than print perfectly.  Who knows how to treat it? No well to

    Bought a new Canon MG7540 printer to replace the old HP A618. When printing vector objects from Illustrator, they look like graphics from dandy (8 bits) ... no smooth, all cubes ... if do raster than print perfectly.  Who knows how to treat it? No well to rasterize vector before each printing. OS - MacOs 10.10.

    Have you read the User's Guide for that printer?  Odds are you will get reasonable prints.  However, it is a photographic printer.  That said, it should print excellent quality photographic files.  To get smooth lines in Illustrator, try Preferences > Use Anti-Aliased Artwork.  That will smoothen the output.  If, for some reason, that does not work, try Print > Save As PDF > open PDF in Reader and print from there.  Check the User's Guide for media sizes available for your particular printer.  Setup your artboard to the size page you want the image to print on.  Use View > Show Page Tiling ( to see where the page's printable area lies.  Align the page with the artboard using the Page tool.

  • Raster and vector..Photoshop to Illustrator

    I created a logo in Photoshop (it is now a raster image), now need to enlarge it and have it printed on Tshirts and signs.  Can I transfer it to Illustrator making it a Vector file, or does it need to be created in Illustrator to be a Vector file?

    Kristi,
    The difference between raster and vector graphics is far more than just resolution dependence. That's just one aspect. Just as important--even moreso in textile screen printing--is that vector artwork is built from objects. This makes all the difference in the world wihen it comes to practical production needs for "logos" and for screen printing.
    For example: Okay, suppose the raster image of the "logo" is oversampled enough to avoid pixelation (which is actually less of an issue with screen printing) when enlarged to the size needed for the T-shirt. Someone's making a blunderbuss statement like  "you can then color separate it" isn't even beginning to think through the practical requirements of the reproduction process. Yes, you can print color separations from a raster image. But what kind of separations do you get? Assuming a CMYK or RGB raster image, you'll get halftone dots. Halftone dots are inherently problematic in screen printing. Most common screen printing assumes line art and spot color, not contone art separated to halftones.
    There are methods for creating raster artwork in Photoshop which will result in color separations suitable for spot color and screen printing separations, but it's far more involved than just designing in CMYK or RGB and then making some automagic "conversion." It requires just as much forethought and understanding of the process as building it correctly as vector artwork.
    To advise you correctly, one has to know more about the specific situation in question regarding the specific original artwork and the capabilities of the screen printing house re halftones and color separations.
    A similar set of considerations apply to signs (which you also mention.)
    Trust me: If your focus is "logos" destined for screen printing and/or signage, and you intend to make it your standard workflow to create the original artwork in Photoshop and then use Illustrator as some kind of automagic "conversion" utility when you think you need vector graphics--then you are very much barking up the wrong tree, and are creating untold problems for yourself before you even start.
    JET

  • AI effects: Feather versus gaussian blur? which is raster or vector?

    i`m looking at feathering versus blurring. both in illustrator effect drop down menu.
    from what I I understand the blur/gaussian blur under photoshop effects (in illustrator) will pixelate the edge gradation, but the illustrator effect "feather, will keep it vector, is this correct?
    from sample here they both look the same to me, and I noticed the feather effect was gaussian blurring the edge anyway to produce its result,,
    from what I can see I should be able to make either of these as large as a billboard and they would both still be smooth gradients? or would the gaussian blur result in pixelation unless I had the vector object sized correctly in the document in the first place to suit the billboard.
    what I am trying to ask is how do they work,
    my take is the AI "feather" will allow resizing of the vector object shape to any size and not be pixelated on print output,
    where as the gaussian blur PS effect, you would need to make sure your object is correctly sized on the correct document size to ensure that it prints smoothly.
    any feedback is good,....

    wildbirdsketch,
    actually can I confirm, both produce a raster gradation to soften the edge, so its no longer vector once you apply a blur or feather correct?
    It is, but with raster effects. 
    asking because if I create a blur/feather, I will have to consider the resolution  or not as again I`m assuming no because each time I resize the object the effect recalculates itself as necessary to create the right blur and resolution for that size.?
    As long as you keep the Effect>Document Raster Effect Settings the same, the resolution of raster effects will remain the same,
    and when these vector objects print (in general for AI), i`ve never known, do they print as Vector or does the RIP turn them all into raster anyway?
    Indeed.
    just confused on this, I`m guessing their only vector while in illustrator, but once going through the printer it will all be raster  via the RIP if thats correct,
    Indeed.
    its just that vector allows you to scale it to the required output size prior to print and have it print crisply without having to focus on resolution or resampling methods correct?
    Indeed.

  • Is it possible to create vector objects as compound shapes as you draw them (automatically)?

    I'd like to start utilizing Illustrator more frequently for web and user interface design projects, but I still like taking everything into Photoshop for final rendering and compositing (and the simple fact that most developers want psds, not ai files). However, I find that the only way to successfully transfer all of the vector artwork from Illustrator and preserve it as vector objects in Photoshop (when exporting) is to manually convert every individual vector object in Illustrator to a Compound Shape (by selecting the shape and clicking Make Compound Shape from the Pathfinder palette menu). This can be very tedious if it has to be done after the design is complete, and very inefficient if you convert every object as you draw it.
    Is there a way to set Illustrator to automatically create every vector object drawn as a Compound Shape without having to manually convert it?
    A little background on this issue...
    Adobe Illustrator allows you to export your Illustrator document as a Photoshop document. However, Compound Paths (not Compound Shapes - see this article for not-so-great explanations comparing the two) – which is the default attribute applied to all of Illustrator's basic vector objects – do not convert into vector objects when the exported document is opened in Photoshop. Rather, the vector objects drawn in Illustrator get flattened into raster layers in Photoshop, making them poor candidates for refining the design in Photoshop.

    Two possibilities:
    Start with a simple Compound Shape and use it as the beginning of each new path:
    Polygon Tool: Mousedown. Drag. Tap the down arrow key until you have a triangle. Mouseup.
    White Pointer: Click one of the sides of the triangle. Delete. (Now you have a 2 segment open path.)
    Fill: Any color. Stroke: None.
    Pathfinder palette flyout menu: Make Compound Shape.
    Drag the path to just beyond the artboard origin (or some other convenient location).
    Copy.
    Each time you begin a new path, start it by either doing a Paste (Ctrl V), or by AltDragging a copy of the original. Then start modifying the pasted path, which is already a Compound Shape.
    OR
    Use an Action (macro) to apply the Make Compound Shape after you have drawn the paths:
    Draw two paths. Select the first one.
    Actions palette: Start recording.
    Pathfinder palette flyout menu>Make Compound Shape.
    Select>Next Object Above.
    Stop recording.
    Now when you've finished a drawing:
    Layers palette: Select the bottom object.
    Actions palette: Repeatedly click the Action Run button (or put the palette in Button Mode and repeatedly click its button).
    As with everything in Illustrator, caveats abound:
    Why there's no loop command for Actions is beyond me. So if you want, you can duplicate the two steps in the Action, say, nine times so it will convert 10 paths per click.
    Using the Action method, the Select>Next Object Above command will not jump between Layers. So if the paths are on various Layers, you'll have to manually do the bottom object select for each Layer.
    As you probably know, if the Illustator Compound Shapes have strokes, not just fills, the resulting Photoshop Shape Layers have the paths, but loose the fills and strokes. So either method above works best if the Illustrator paths are filled and unstroked before converting to Compound Shapes.
    Illustrator's Javascript considers a Compound Shape a PluginItem. So it's conceivable that one could script the conversion of a simple path to a Compound Shape by using the sendScriptMessage() method of the app object. But you'd have to know the appropriate parameters for the plugin, which I don't.
    If only you could invoke an Action from an Illustrator Javascript, you could simply use a Javascript to intelligenty loop through the objects and run the Action for each...but that's another big "if only".
    JET

  • Encoding-Vector Objects-Jaggies

    Greetings from Beautiful Boise
    I have Stroked a path in After Effects, rendered to uncompressed .avi, and imported into a Sequence in Premiere Pro. When I attempt to encode to either .flv or .f4v (so, ON2 or h.264) my vector Stroke is corrupted. These are 1:1 captures of the 500x500 8 bit frames.
    The image on the left is a screen capture in PP, where the stroke is fine. The image on the right is from a rendered .flv. I have compressed this particular image to maintain the integrity of the image on the left, so it is fairly accurate in terms of what I'm seeing from out of AME.
    My questions: is there a conventional wisdow-or better yet, a reliable rule-on softening Strokes to allow for more aggressive encoding of Vector Objects in AME (particularly for .flv and .f4v)? Is there a known threshold where whatever subsampling that is producing this "jagging" is switched off (as there is with .jpg encoding)? Or is it simply a matter of judiciously selecting the bitrate? Does 16 bit act more reliably in these situations?
    Thanks for tolerating my ignorance on the matter, but I'm a Photoshop & Flash guy...not well versed in the video/AME end.

    Thanks, Jim! Now I'm aware that uncompressed .avi doesn't have a separate layer for Vector Objects. The artifacting doesn't appear to be an interlacing issue, and I did ensure the entire process is Progressive. The image is a still RGB raster so no Chroma Subsampling at all in the original...
    I'm playing around with the settings and it does appear that it's primarily dependent upon how aggressively I compress. The problem is that the artifacting disappears at about 5Mbps, which is too high for the internet version to make sense (500x500 pixels).
    Are there any conventional wisdoms about using Strokes in video in terms of softening the Brush or any file formats that maintain separate Layers for Vectors as they do for Text? Does .mov do this (I realize .mov is h.264)?
    Again, thanks for your kind help!

  • How do I prevent the Darker Shade Box (color shift) around Vector Objects when Printing

    Sorry in advance for the novelette. I am absolutely mystified and frustrated and would love some help! I've been working on this problem for about 30 hours over the last 4 days to figure out what the heck is happening and cannot find an answer through various forms of research.
    Basically, when I print a JPEG, I am getting this area (a box) of darker shaded coloring around my heart and love text.  I've tested it a million different ways and am at a loss as to what the problem is ... is it an application problem, a color profile problem between my applications and printer, an improper way that I saved my file, etc.
    Here is a photo I took of the image printed out (so it is slightly skewed from camera distortion):
    The details:
    (1) I create graphic art and sell it online. I save all of my printable art as JPEG files because of my customer base (diy hobbyists that print on their home printers without much knowledge base nor graphic design software).
    (2) I use both Adobe Illustrator (AI) and Photoshop Elements 11 (PSE11) to design and save my artwork.
    (3) I insert JPEG images into Microsoft Word 2003 documents to "test print" since most of my customers use home printers to print. Since most people have this basic software, it is a good gauge of the kind of print out they might get using the same or similar software.
    (4) My PSE11 color profile setting is the default sRGB. I have test printed many times and I get the truest colors with this color profile.
    (5) My AI color settings are normally also an sRGB color mode, but on occasion, I use a CMYK color mode if I am creating a larger document that I know the customer will need to take to a professional printer to print out.
    (6) I do my home printing (for proofs) on an Epson Stylus Photo 1400 (which has the 6 color ink cartridges).
    (7) Until this printing problem occurred on this test print out, I always used the "photo enhance" option when I designate settings for my printer via the Microsoft Word documents.
    IMPORTANT: This is when I have the color shift?? or color rendering issues?? and it is the only time. If I use the regular ICM/ICC color profile of sRGB, the printing issue doesn't occur. Instead, I have a solid color background instead of this one with the strips of lighter color on the top and bottom.  However, I can't control how the customer prints, so I need to feel confident that whatever color profile setting they use, they will not run into this problem.  I even test printed the documents over at FedEx and the darker box/color shift did not occur.
    (8) The document in question only has 3 sets of objects: the heart, the solid colored rectangle colored background and the text.  All 3 objects are vectors, they are at 100% opacity and there are no "special effects" applied.
    (9) The image was entirely created in AI this time and exported as a maximum quality JPEG file, although you will see below that I tried many ways to create and save the file so that I didn't have the color band borders on top/bottom.
    (10) I regularly use AI for part of my art, then I drag it to my PSE11 open document and it becomes a Vector Object (it cannot by copying/pasting into a PSE11 document).  I also regularly export AI images as PNG files, then insert them into an open PSE11 document. This printing issue has not occurred until recently.  Here is an example of a very complex AI image I created, then inserted into PSE11 just to add the background (the Teddy Bear and books are AI vector objects) that were exported as PNG files then inserted into PSE11 to integrate with the background image - I test printed with Photo Enhance and had no printing issues:
    So, from the research I have done, it looks like it is a color rendering or color space issue with conflicting color profiles in the same document. I checked my color profile settings and both sRGB and CMYK were set to embed ICC color profiles.
    I tried changing AI settings to Preserve Numbers (ignore linked profiles) for CMYK, but that didn't work.
    I also checked and made sure that not only the document setup showed the sRGB color profile, but that all the objects within the document also were converted to sRGB as well for consistency. That didn't work.
    I tried converting the document to CMYK along with the vector objects. That didn't work.
    I tried saving the heart image as a PNG file alone, the "love" text as a PNG file alone, both the heart and text together as a PNG files alone. Once saved as PNG files, I inserted them into an open empty PSE11 document - as I normally do. I then added the background color I wanted. That didn't work - the print still showed the color changes.
    I tried dragging each vector object separately and even as a group and got the same color change issue when printing.
    I tried "expanding" and "outlining" the text before exporting as JPEG, before exporting as a PNG and before dragging as a vector object into PSE11. Expanding the text did not help the situation.
    I tried exporting as Adobe PDF, then opening in PSE11, then resaving as JPEG. That didn't work.
    I tried flattening transparency (even though there is no transparency in the AI file). That didn't work.
    I tried rasterizing the image. That didn't work.
    Thinking that the file might be corrupt, I started from scratch and redesigned the same heart and love text.  Unfortunately, I had the same problem as before.  At this point, my AI started becoming buggy and would not open new files. It happened repeatedly and I decided it was best to uninstall and reinstall AI (and maybe that would fix the problem).
    I created just the heart in AI, then inserted it into an open PSE11 document (both after exporting as PNG and also by dragging as Vector Object from AI). It seemed to work. I could both drag the vector into PSE11 from AI and export from AI as a PNG, then insert into open PSE11 document with a background color - and it printed a solid background.
    So, I thought that reinstalling and setting back to defaults worked. But, then I added the love text around the heart and tried exporting as JPEG files and the same problem continued to recur. Whether I dragged as a Vector object into PSE11 (the heart object and love text separately and also another time with the vector objects dragged as a group) or saved them as PNG files and inserted into PSE11 - I got the different shades of color on what should be a solid background. I even tried saving the PSE11 as a PSD file first, then resaving as JPEG and I tried saving as PNG and printing and this didn't help solve the problem.
    I really think it is some color conflict issue but I can't figure it out. I am definitely not very knowledgeable about color profiles and how to sync all my devices, however, as I mentioned, this was not an issue until recently (and I think??? I recall changing the CMYK setting from Preserve Numbers to embed color profile a month or so ago - however, it should have been solved when AI went back to its defaults upon reinstall).
    The reason I believe it is a color rendering/color space issue is because I could see the color output when I saved the JPEG with CMYK color profile versus sRGB color profile and the sRGB colors were much richer, not surprisingly. The top and bottom colors matched the sRGB printout and the middle darker box section matched the CMYK printout.
    I am sure it is something fundamental or simple and I am completely overlooking it.  I wish it were just a transparency issue, because people know how to fix or do workarounds for it. But, there are no vector objects with any transparency ...
    If I missed some detail, I apologize. Any help would be a dream come true at this point! lol
    Thank you!

    Okay, I got motivated to try again.  From doing a bit more research on troubleshooting AI printing problems, the Adobe article talks about print drivers. It was advised to uninstall and reinstall the print driver if the printing issue persists. So, I did. Unfortunately, I still had the same result after reinstalling and trying a test print! Ugh.
    So, as Jacob said upfront, I seem to have an overactive print driver that is trying too hard (and it is a non-postscript printer which I realize is part of the problem).
    There are so many variables in my situation as to how I create art and save/export art. I sometimes work solely in AI, sometimes solely in PSE and sometimes I use both programs to create. Consequently, I will:
    (1) export directly from AI as JPEG if I am not adding PSE11 artwork.
    (2) export directly from AI as PNG  if I plan on inserting that image into PSE11 to add to artwork I have created in PSE11.
    (3) drag vector objects as a Smart Objects directly from AI to PSE11 to add to artwork I am creating in PSE11 if I know I will playing with the vector object and resizing in PSE11.
    So, I did a test print using scenario 2, where I inserted the heart and love text PNG (AI created vector object) into an old PSE11 document. This old document already had a vector object from AI with a solid background and I knew it printed correctly. So, after inserting this new PNG from AI into this old document, it printed correctly using the photo enhance mode.
    However, I haven't had a chance to actually create new art in the older AI files (that I know print properly), resave as something else and try another test print (either by exporting as JPEG and printing in Word or by exporting as PNG file and inserting into PSE11 document, then saving as JPEG and printing in Word).
    After testing the different possibilities of ICM settings within my printer, I found that the JPEG images printed out with the truest colors and best quality if I simply selected "no color management" from the printer. Shocker, huh? lol
    MY SOLUTION: So, what I think I will simply do is add an instruction sheet with the printables I sell, explaining that the color profile setting should never be handled by the printer so make sure to turn off color management by printer (and if they feel they must use the printer for color management, make sure the setting is sRGB since I embed that color profile in my JPEG's).
    Edited to add: Since my issue was never about how I could print a successful image (I knew I could simply change the color profile settings), but rather about how to make sure that customers would get consistent and high quality print outputs of my digital images, this seems like the best approach.
    I don't think I will every really know exactly why I am now getting color shifts in the "photo enhance" mode when I did not have this problem a couple months ago - applying the same methods of creating artwork. I was concerned that I was saving/exporting using incorrect or mismatched color settings or something of that nature.  However, since I went through the process of making my color spaces the same for everything, and I still have issue, clearly that is not the culprit. The only thing I can do to solve the problem and it is a straightforward solution anyway -> is to educate the buyer on how to print successfully (don't use photo enhance! ha ha).
    Thanks again to everyone who chimed in and offered advice!

  • Matching Raster and Vector RGB color in InDesign CS3.

    We print on a Durst Lambda RGB imaging device to photographic paper. All color management is done as an early bind (raster files are converted to the printer's color space and vector colors are chosen from a palette database). So basically the files must go through InDesign without any color change in raster or vector information. We have clients that require specific RGB builds for logo colors the are present in both their raster and vector files.
    Color Management is set to "North American General Purpose 2" with "RGB: Preserve Embedded Profiles" selected.
    1) The file is exported as a PDF 1.4, High Quality, PDF/X_None.
    2) The PDF was ripped on a Cheetah RIP (Jaws level 3) with no color management on.
    3) Solid raster colors such as 0-255-0 will reproduce as 0-255-1.
    4) The color differences between the raster and vector are usually 1-4 points.
    5) The vector is consistent as was input in the programit's only the raster that changes. When you are trying to match raster and vectors logo colors it is a killer.
    However, I can go into the InDesign (or Illustrator) color settings and turn color management off (This is our current workflow). In doing this the RGB working space uses the monitor profile and "color management policies" are set to OFF. With these settings the RGB raster and vector match. The problem with this work flow is two fold:
    1) We have other devices than our RGB Durst Lambda that can use the InDesign color managementVutek flat bed 3200 and grand format 3360.
    2) We have had many occurrences where the custom "color management off" settings have reverted back to the default "North American General Purpose 2"without any intervention.
    I have tried this with different RIP's with the same results.
    Does anyone have an idea to create a simple PDF workflow and keep the color information consistent?
    Program: InDesign CS3 5.0.2
    Platform: Mac OS 10.5.2
    Computer: G5 tower with 4 gigs of RAM

    I believe that setting is an old Illustrator setting that has been saved to effectively turn the color management off. The monitor profile effects the image displayedit doesn't effect the color transform.
    Anyway, the color management I want to use is the "North American General Purpose 2".
    To reiterate:
    The procedure:
    1) The file is exported as a PDF 1.4, High Quality, PDF/X_None.
    2) The PDF was ripped on a Cheetah RIP (Jaws level 3) with no color management on.
    The Problem:
    3) Solid raster colors such as 0-255-0 will reproduce as 0-255-1It changes from the original raster color placed in InDesign.
    4) The color differences between the raster and vector are usually 1-4 points.
    5) The vector is consistent as was input in the programit's only the raster that changes. When you are trying to match raster and vectors logo colors it is a killer.
    To summarize, the color of the raster file will change from the original that was place into the documenteven though nothing was selected in InDesign that would change the color (i.e. profile conversion to an output profile or a transparency effect used). The change is slightbut there.

  • Ps CS6 Problem: Incorrect rendering of pasted Adobe Illustrator vector objects

    Ps CS6 v13.0.1
    OS X 10.6.8
    Problem: Ps CS6 incorrectly renders vector objects pasted from Adobe Illustrator. CS5.1 does not exhibit the problem.
    Below is screenshot of artwork in Illustrator and which is copied to clipboard, followed by screenshot of "Paste as Smart Object" in Ps CS5.1 then screenshot of same paste in CS6. "Paste as Pixels" gives identical good rendering in CS5.1 and poor rendering (gray pixels which should be pure white in this example) in CS6. This is repeatable with other artwork.
    Several weeks ago there was a complaint in this forum that Photoshop CS6 poorly renders vector artwork that is pixel-aligned in Illustrator. The Adobe response was that Photoshop is correct. Strange that CS5.1 can render pasted vector artwork perfectly and only CS6 makes a mess.

    What's the explanation for the following sequence?
    1. Paste as Smart Object, at moment after pasting and before clicking the commit icon (no transform was made) in options bar. The object is rendered pixel-perfect.
    2. After the commit. The object is poorly rendered with gray pixels which should be white.
    3. Press Cmd+T for transform mode. The object is rendered pixel-perfect again.
    4. After canceling transform mode, the object is poorly rendered again.

  • Find raster Image & Vector image in adobe indesign using apple script?

    Find raster Image & Vector image in adobe indesign using apple script?

    Find raster Image & Vector image in adobe indesign using apple script?

  • Editing Vector Objects in PDF

    When I use the Touch-up Object tool to select a vector element in a PDF and right click to Edit Object the object opens in Illustrator. This is the program I have set in preferences to edit vector objects. The issue I have is when I edit and save the object it shows up in the PDF shifted from its original position (offset to the upper left). How can I get the object to update in the PDF without shifting position?

    Yes and No. You have the most up-to-date version of Acrobat 8.1 and
    Illustrator, so the bug should have been fixed. I cannot say why it is
    not working for you. Of course, the latest version of Acrobat is 9.0,
    but I don't think you need to upgrade for the fix. Maybe someone can
    chime in. What happens if you create a new file in Illy and create a
    pdf, does the problem still happen?
    Mike

  • Passing a Vector object as a parameter to a method

    Hi,
    How can I pass a Vector object as a parameter to a method?
      void buttonAdd_actionPerformed(ActionEvent e) {
        Vector studentHobbies = new Vector();
          String[] items = listHobbies.getSelectedItems();
          for (int i=0; i<items.length; i++) {
            studentHobbies.addElement(items);
    newStudent = new Student(Name,StudentNumber,studentHobbies);
    studentenlist.addTo(newStudent);
    So I want to pass the Vector object 'studentHobbies'  to a method.
    Would I do something like this :import java.util.Vector;
    public Student(String Name, int StudentenNumber, Vector studentHobbies){
    this.Name = Name;
    this.StudentNumber = StudentNumber;
    this.studentHobbies = StudentenHobbies;

    yes, thats how you do it.
    maybe you should first try your idea and then ask people questions?
    also, use ArrayList instead of Vector, its better - google as to why if you care.

  • How to create a vector object

    hi,
    ok my problem is i am trying to create a vector object in jbuilder with this
    private Vector<Object> rows;
    but i keep getting a error saying generics are not supported in 1.2 try -source 1.5.
    how can i create a vector object in 1.2, i am seriously stuck can you please help.
    regards

    i now got the 1.5 to work without the invocation errors, the whole reason i needed the array is as such
    setting array
    Vector<Object> rows;
    then
    public void setauctiondetails() throws java.rmi.RemoteException {
    Connection link = null;
    Statement statement = null;
    ResultSet results = null;
    Class.forName(
    "sun.jdbc.odbc.JdbcOdbcDriver");
    link = DriverManager.getConnection(
    "jdbc:odbc:auction","","");
    statement = link.createStatement();
    results = statement.executeQuery(
    "SELECT * FROM auctiondetails");
    rows = new Vector<Object>();
    while (results.next())
    rows.addElement(results.getInt(1));
    rows.addElement(results.getString(2));
    rows.addElement(results.getString(3));
    rows.addElement((results.getInt(4)));
    link.close();
    for(int i=0; i<clients.size(); i++){
    icl = (Iclient)clients.get(i);
    icl.updateTime(rows);
    but still getting a error with the bloody array saying "type java.util.vector does not take parameters". i no you guys are really good at java, so tried not to have a go just need to be pointed to a tutorial or some code that might explain this better to me.
    kind regards

  • Mysql Query VS Vector Object

    I run mysql query using Java, and the results of it are put in a vector object. Due to the vector object is made by 1 element (it's sure because I wrote the database) I'd like to take it and put it in a string variable, but Java returns me a lot of exceptions; here is the code:
    public Vector eseguiQuery(String query) {
         Vector v = null;
         String [] record;
         int colonne = 0;
         try {
            Statement stmt = db.createStatement();     // Creo lo Statement per l'esecuzione della query
            ResultSet rs = stmt.executeQuery(query);   // Ottengo il ResultSet dell'esecuzione della query
            v = new Vector();
            ResultSetMetaData rsmd = rs.getMetaData();
            colonne = rsmd.getColumnCount();
            while(rs.next()) {   // Creo il vettore risultato scorrendo tutto il ResultSet
               record = new String[colonne];
               for (int i=0; i<colonne; i++) record[i] = rs.getString(i+1);
               v.add( (String[]) record.clone() );
            rs.close();     // Chiudo il ResultSet
            stmt.close();   // Chiudo lo Statement
         } catch (Exception e) { e.printStackTrace(); errore = e.getMessage(); }
         return v;
    public String autentica(String query){
              String s = (String) db.eseguiQuery(query).get(0);
              System.out.println(s);
              return s;
         }...Please help me!

    1. You're not calling ResultSet.next() to move the result set onto the first row of results.
    2. (Edit) Deleted because you were in fact closing your objects, though you should still use a finally block to make absolutely certain.
    3. The exceptions tell you what the problem is - when you post a question please include these.
    Edited by: dcminter on 06-Aug-2008 17:04

  • Reducing amount of discrete vector objects [Acr 8]

    Any way to simplify vector objects in a PDF file?
    I have a page with complex maps. This PDF is placed in InDesign, scaled, and then I export to create a new PDF. Either at the source (linked PDF) or the final PDF, I'd like to simplify the vector map images, presumably by rasterizing to 72 ppi.
    Any way to do this in Acrobat?
    Thanks in advance,
    Aaron

    Hi..
    >
    SET LINESIZE 200
    COLUMN username FORMAT A15
    SELECT s.username,
    s.sid,
    s.serial#,
    t.used_ublk,
    t.used_urec,
    rs.segment_name,
    r.rssize,
    r.status
    FROM v$transaction t,
    v$session s,
    v$rollstat r,
    dba_rollback_segs rs
    WHERE s.saddr = t.ses_addr
    AND t.xidusn = r.usn
    AND rs.segment_id = t.xidusn
    ORDER BY t.used_ublk DESC;
    >
    HTH
    Anand

Maybe you are looking for