How to outline a given artwork?

You already help me and perhaps this time also.
I need to create the outline of an artwork.
I used the AIArtConverter suite to get the ouline of a given artwork ant it's works fine.
My problem is that I don't know how to get the result to modify the outline later.
I used something like
AIArtHandle arttobeconverted, result;
error=sArtConverter->GetOutlineArt(arttobeconverted, kPlaceAboveAll, nil, kOutlineAddStrokes, &result);
error=sArt->SetArtUserAttr(result, kArtFullySelected, kArtFullySelected);
When I test the artwork is outlined but the result is NOT selected.
If I try to modify the result, nothing happend.
I don't understand why.
If somebody could give me an idea, it would be great!
Thank's in advance.
JLG

I thank you for your answer.
You were right,the result of GetOutlineArt is a group in the layer pannel but when I test the type, the type is kUnknownArt.
In AIArt.h, the kUnknownArt type is for objects that are not supported in the plug-in interface.
So I conclude that it's impossible to do something with the result of GetOutlineArt.
I am very disappointed because, I was trying to do a tool plugin to magnify a zone.
I wanted to outline an artwork, then to use the DoIntersectEffect Pathfinder function before applying a scale matrix.
For the Pathfinder effects, artwork have to be selected.
It' for that reason that I need to retrieve the result of GetOutlineArt function to be able to apply the DoIntersectEffect.
If it's impossible, my tool is going to be more complicated…
In attachment, JLG.Zoom (CS4) for MacOS.
Try JLG.Zoom (CS4) to understand what I would like to do. I am interested by all ideas to solve this problem.
Thank you in advance.
JLG.

Similar Messages

  • How do I turn off artwork in iTunes Mini player 11.0.4?

    I have been very vocal in mourning the loss of Cover Flow but now I've given iTunes 11 a second chance on my MacBook Pro.
    The most irritating thing is the Mini Player is no longer 'mini'. How can I turn off artwork display when in mini mode? The whole point of this is to enable iTunes control whilst working, but having a big square displaying album artwork is just counter-productive.
    I just want the option of a minimalist player when working.
    Thanks,
    Rich

    Ah right, thank you!
    I had the box with the artwork as small as possible and couldn't see the other artwork bottom left!

  • How to outline selected cells during drag and drop in the jtable

    Hi,
    I have spent a lot of time to find out how to outline selected cells during drag in the jtable, but I did not find the answer.
    Can anybody give me a tip, where to read more about this problem or even better, give an example...
    I have the following situation:
    1.Table has 10 rows and 10 columns
    2.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION) and setCellSelectionEnabled(true)
    3.user select 5 cells in 4th row (for example cell45,cell46,cell47,cell48 and cell49)
    4.user starts dragging. During dragging an outline should be drawn. Outline should be a rectangular with width of 5 cells and height of one cell. Outline should move according to the mouse position.
    5.rectangular disappears when dropped
    Regards,
    Primoz

    In "createTransferable" you can create a drag image
    which you can paint in "dragOver" and clear in "drop" method of DropTarget :
    package dnd;
    * DragDropJTableCellContents.java
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.IOException;
    public class DragDropJTableCellContents extends JFrame {
        public DragDropJTableCellContents() {
            setTitle("Drag and Drop JTable");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            getContentPane().add(createTable("JTable"), BorderLayout.CENTER);
            setSize(400, 300);
            setLocationRelativeTo(null);
        private JPanel createTable(String tableId) {
            DefaultTableModel model = new DefaultTableModel();
            for (int i = 0; i < 10; i++) {
                model.addColumn("Column "+i);
            for (int i = 0; i < 10; i++) {
                String[] rowData = new String[10];
                for (int j = 0; j < 10; j++) {
                    rowData[j] = tableId + " " + i + j;
                model.addRow(rowData);
            JTable table = new JTable(model);
            table.getTableHeader().setReorderingAllowed(false);
            table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
            table.setCellSelectionEnabled(true);
            JScrollPane scrollPane = new JScrollPane(table);
            table.setDragEnabled(true);
            TableTransferHandler th = new TableTransferHandler();
            table.setTransferHandler(th);
            table.setDropTarget(new TableDropTarget(th));
            table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            JPanel panel = new JPanel(new BorderLayout());
            panel.add(scrollPane);
            panel.setBorder(BorderFactory.createTitledBorder(tableId));
            return panel;
        public static void main(String[] args) {
            new DragDropJTableCellContents().setVisible(true);
        abstract class StringTransferHandler extends TransferHandler {
            public int dropAction;
            protected abstract String exportString(JComponent c);
            protected abstract void importString(JComponent c, String str);
            @Override
            protected Transferable createTransferable(JComponent c) {
                return new StringSelection(exportString(c));
            @Override
            public int getSourceActions(JComponent c) {
                return COPY;
            @Override
            public boolean importData(JComponent c, Transferable t) {
                if (canImport(c, t.getTransferDataFlavors())) {
                    try {
                        String str = (String) t.getTransferData(DataFlavor.stringFlavor);
                        importString(c, str);
                        return true;
                    } catch (UnsupportedFlavorException ufe) {
                    } catch (IOException ioe) {
                return false;
            @Override
            public boolean canImport(JComponent c, DataFlavor[] flavors) {
                for (int ndx = 0; ndx < flavors.length; ndx++) {
                    if (DataFlavor.stringFlavor.equals(flavors[ndx])) {
                        return true;
                return false;
        class TableTransferHandler extends StringTransferHandler {
            private int dragRow;
            private int[] dragColumns;
            private BufferedImage[] image;
            private int row;
            private int[] columns;
            public JTable target;
            @Override
            protected Transferable createTransferable(JComponent c) {
                JTable table = (JTable) c;
                dragRow = table.getSelectedRow();
                dragColumns = table.getSelectedColumns();
                createDragImage(table);
                return new StringSelection(exportString(c));
            protected String exportString(JComponent c) {
                JTable table = (JTable) c;
                row = table.getSelectedRow();
                columns = table.getSelectedColumns();
                StringBuffer buff = new StringBuffer();
                for (int j = 0; j < columns.length; j++) {
                    Object val = table.getValueAt(row, columns[j]);
                    buff.append(val == null ? "" : val.toString());
                    if (j != columns.length - 1) {
                        buff.append(",");
                return buff.toString();
            protected void importString(JComponent c, String str) {
                target = (JTable) c;
                DefaultTableModel model = (DefaultTableModel) target.getModel();
                String[] values = str.split("\n");
                int colCount = target.getSelectedColumn();
                int max = target.getColumnCount();
                for (int ndx = 0; ndx < values.length; ndx++) {
                    String[] data = values[ndx].split(",");
                    for (int i = 0; i < data.length; i++) {
                        String string = data;
    if(colCount < max){
    model.setValueAt(string, target.getSelectedRow(), colCount);
    colCount++;
    public BufferedImage[] getDragImage() {
    return image;
    private void createDragImage(JTable table) {
    if (dragColumns != null) {
    try {
    image = new BufferedImage[dragColumns.length];
    for (int i = 0; i < dragColumns.length; i++) {
    Rectangle cellBounds = table.getCellRect(dragRow, i, true);
    TableCellRenderer r = table.getCellRenderer(dragRow, i);
    DefaultTableModel m = (DefaultTableModel) table.getModel();
    JComponent lbl = (JComponent) r.getTableCellRendererComponent(table,
    table.getValueAt(dragRow, dragColumns[i]), false, false, dragRow, i);
    lbl.setBounds(cellBounds);
    BufferedImage img = new BufferedImage(lbl.getWidth(), lbl.getHeight(),
    BufferedImage.TYPE_INT_ARGB_PRE);
    Graphics2D graphics = img.createGraphics();
    graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f));
    lbl.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
    lbl.paint(graphics);
    graphics.dispose();
    image[i] = img;
    } catch (RuntimeException re) {
    class TableDropTarget extends DropTarget {
    private Insets autoscrollInsets = new Insets(20, 20, 20, 20);
    private Rectangle rect2D = new Rectangle();
    private TableTransferHandler handler;
    public TableDropTarget(TableTransferHandler h) {
    super();
    this.handler = h;
    @Override
    public void dragOver(DropTargetDragEvent dtde) {
    handler.dropAction = dtde.getDropAction();
    JTable table = (JTable) dtde.getDropTargetContext().getComponent();
    Point location = dtde.getLocation();
    int row = table.rowAtPoint(location);
    int column = table.columnAtPoint(location);
    table.changeSelection(row, column, false, false);
    paintImage(table, location);
    autoscroll(table, location);
    super.dragOver(dtde);
    public void dragExit(DropTargetDragEvent dtde) {
    clearImage((JTable) dtde.getDropTargetContext().getComponent());
    super.dragExit(dtde);
    @Override
    public void drop(DropTargetDropEvent dtde) {
    Transferable data = dtde.getTransferable();
    JTable table = (JTable) dtde.getDropTargetContext().getComponent();
    clearImage(table);
    handler.importData(table, data);
    super.drop(dtde);
    private final void paintImage(JTable table, Point location) {
    Point pt = new Point(location);
    BufferedImage[] image = handler.getDragImage();
    if (image != null) {
    table.paintImmediately(rect2D.getBounds());
    rect2D.setLocation(pt.x - 15, pt.y - 15);
    int wRect2D = 0;
    int hRect2D = 0;
    for (int i = 0; i < image.length; i++) {
    table.getGraphics().drawImage(image[i], pt.x - 15, pt.y - 15, table);
    pt.x += image[i].getWidth();
    if (hRect2D < image[i].getHeight()) {
    hRect2D = image[i].getHeight();
    wRect2D += image[i].getWidth();
    rect2D.setSize(wRect2D, hRect2D);
    private final void clearImage(JTable table) {
    table.paintImmediately(rect2D.getBounds());
    private Insets getAutoscrollInsets() {
    return autoscrollInsets;
    private void autoscroll(JTable table, Point cursorLocation) {
    Insets insets = getAutoscrollInsets();
    Rectangle outer = table.getVisibleRect();
    Rectangle inner = new Rectangle(outer.x + insets.left,
    outer.y + insets.top,
    outer.width - (insets.left + insets.right),
    outer.height - (insets.top + insets.bottom));
    if (!inner.contains(cursorLocation)) {
    Rectangle scrollRect = new Rectangle(cursorLocation.x - insets.left,
    cursorLocation.y - insets.top,
    insets.left + insets.right,
    insets.top + insets.bottom);
    table.scrollRectToVisible(scrollRect);
    Edited by: Andre_Uhres on Nov 18, 2007 10:03 PM

  • I down loaded about 100 cds to my library and I can no longer view the downloaded artwork it's shows a black picture or blank. How can I get the artwork back? Please help! Thank you

    I downloaded about 100 cds to my library and I can no longer view the downloaded artwork it's shows a black picture or blank. How can I get the artwork back? Please help! Thank you.

    Hi- apparently I also had a similar moment of madness and thought that 'freeride games' would be fun. Well, so much for that! It added a ton of things to my tool bar, I would like to uninstall it, any suggestions for this one?
    thanks :)

  • How to setup a global artwork for a TV Show

    Hi, I've a TV Show composed by 45 episodes where each one have his artwork but I don't know how to setup a global artwork for the TITLE of the TV Show while retaining the 45s artworks.
    ie. when watching the Tv Shows (library on iTunes) I would like to see the global artwork of the Tv Show that is different of the other 45s episodes contained.
    Bye, Roberto.

    Sorry, I don't believe that you have had a good look at the Foundation framework. I'll now hold your hand while we go through the basics.
    Here is the specific page http://foundation.zurb.com/docs/components/grid.html
    The default values are
    Em-base : 16px
    Row width: 62.5em (62.5em x 16px = 1000px)
    Columns per row: 12
    These and other default values can be changed. The fact of the matter is that if you stipulate a section width of 2 or 3 or 12 columns, the widths will automatically be calculated for you.
    In your case, if you want 7 columns, all you need to do is change the number of columns per row and the rest is done for you.

  • How do i get album artwork in iTunes on macbook pro?

    how do i get album artwork in iTunes on macbook pro?

    http://sportsillustrated.cnn.com/video/nfl/20121202/nfl-colin-kaepernick-san-fra ncisco-49ers-st-louis-rams.sportsillustrated/?sct=nfl_t11_a8

  • How do i copy album artwork to all the songs in an album

    How do i copy album artwork to all the songs in an album as some of the songs do not have the artwork, as with the previous version of itunes you had to load artwork individually.
    I have tried the copy and paste option and that does not work
    Look forward to hearing from you

    "How do i copy album artwork to all the songs in an album as some of the songs do not have the artwork, as with the previous version of itunes you had to load artwork individually."
    That suggests some underlying issue, as iTunes has always (AFAIR) allowed artwork to be assigned with multiple tracks in a single action.  For an album, right-click on the album, select Get Info, select the Artwork tab.  You then have three options:
    If the artwork image exists as a file, click the Get Artwork button, browse to and select the file, then click Open.
    Drag and drop the image file from Windows Explorer to the Artwork tab (previous releases also allowed drag and drop from a web browser, this functionality is missing - either by design or as the result of a bug - in iTunes 12).
    If you've copied the artwork image to the clipboard, press Ctrl-V on the keyboard to paste in the image (prior to the 1st release of iTunes 12 this could also be done using right-click > Paste - hopefully this will be restored as a bug-fix in the next update)
    "I have tried the copy and paste option and that does not work."
    There are three possible causes for this:
    The format of your media files doesn't support embedded artwork - specifically, uncompressed audio in WAV format.  You'll need to convert to Apple Lossless (without loss of quality) or either MP3 or AAC (if you're OK with lossy media) before artwork images can be associated with your media.
    Windows' permissions are preventing your media files from being updated when iTunes attempts to embed the images (in a perfect world iTunes should report this as an error, but it actually does nothing).  To check this, find the folder that contains media of interest in Windows Explorer (by default this will be C:\Users\user_name\Music\iTunes\iTunes Media\Music\artist_name\album_name), right-click and select Properties, Security tab - check that your Windows user account has full control over the folder.
    The media files that you're trying to add artwork to may be set to read-only in Windows. Select the folder as before in Windows Explorer, right-click > Properties and make sure that the Read-only flag is cleared.

  • How do I add album artwork in itunes 11.1.3.8? Copy and paste in artwork window on bottom right does not work.

    How do I add album artwork in itunes 11.1.3.8? Copy and paste to artwork box on bottom right in get info screen does not work.

    You can only join tracks when importing from a CD and likewise, the Options button is also only visible when importing from CD.
    When the CD is in the drive and showing in iTunes, you will see Options, CD Info and Import CD choices. If you select Options, the Join CD Tracks option only appears when you have two or more adjacent tracks selected. See the screenshots below:
    and

  • How do I update Album artwork onto my ipod.....

    How do I update Album artwork onto my ipod after i have found the artwork and added it to my itunes?
    i tried to just plug in my ipod and sync. it but that didnt work.

    *Why is artwork not showing on my iPod when it's there in iTunes?*
    iTunes will display a cover in many of it's views provided at least one track from the album has embedded artwork. The iPod appears to load only the artwork from track one to create the cover flow and album views which means that it can sometimes fail to display art for albums even when you can see the art in iTunes. Further, when tracks are played on the iPod, artwork is displayed if and only if it exists in the currently playing track, so track one may show art while track two does not.
    *How to find tracks without artwork*
    To find all the tracks without artwork so that you can update them you can try http://www.stum.de/itunes-find-tracks-without-artwork/ for Windows or http://dougscripts.com/itunes/scripts/ss.php?sp=trackswithoutartwork for Macs. Use Google, Amazon, Discogs etc. to locate relevant images. Ideally these should be square, 320x320 pixels or above and borderless to give the best results in the various menus. If you have artwork for some tracks of an album, but not others, find the album in the main music folder, select a track with artwork, right-click (Option-Click for Macs) on the art & click copy, then select all the tracks of the album, use CTRL-I or Command-I to *Get Info* and then paste the image into the artwork box.
    I say 320x320 because I believe (from using TouchCopy) that it's the size used in the iPod cache so if you're going to crop or resize you might as well work to that size. Otherwise 200x200 is probably good enough.
    *Rebuild artwork cache*
    Sometimes the artwork cache becomes corrupt and fails to show correct artwork, even when this is properly set up in iTunes. To rebuild the artwork cache, connect your iPod to iTunes. Locate the iPod in the Sources pane on the left-hand side, then select the Music tab. Remove the tick from *Display album artwork on your iPod*, sync the iPod, reselect the option & sync again.
    tt2

  • How do i enlarge album artwork in iTunes 11

    How do I enlarge album artwork in iTunes 11?

    gimmetime wrote:
    No, I'm asking about the thumbnails that show the entire library.  Before upgrading to 11 I was able to enlarge the artwork and also change the background color from white to black.
    OK, you are referring to the thumbnails when displaying your library in "Albums" view.  TBOMK, they cannot be adjusted.  (Or at least in iTunes 11.2.2 on Windows, there does not seem to be a way, which does seem a bit strange.)
    If you would like to provide feedback to Apple, use this link:
    http://www.apple.com/feedback/itunesapp.html

  • How can i have the artwork of my itunes in the screen

    how can i have the artwork of my itunes in the screen

    Right-click the track in your iTunes library.  Choose Get Info, and go to the Info tab.  Type what you want into the Artist field, and then OK out.

  • Cash journal - How to track Money Given to Perticular Employees

    Dear Experts,
    Money given to a perticular employee for a particular purpose say, for Printing,  Stationary expenses, postage or any other... (Other than Travelling Epxenses). (Here client not implimenting HR-SAP module. He is managin with his own HR module.)
    But he wants to track how much advance is given  to a particular employee for particular purpose in SAP (other than Travelling - because travelling is also covered in his own developed non-sap software) and how much is really expended and final settlement...
    is there only way to create Emplopyee-vendor master? if yes.,
    is it possible to track the expeses of particular employee-vendor as Expese head wise(like how much for printing, how much for stationary etc.,) ?
    Thanks regards:
    Dasu

    Hi,
    is there only way to create Emplopyee-vendor master? if yes.,
    is it possible to track the expeses of particular employee-vendor as Expese head wise(like how much for printing, how much for stationary etc.,) ?
    Yes you are right you will have to maintain Employee as Vendor .
    For tracking expense head wise then do one thing in vendor master  in control tab give expense head as group in  corporate group field.Note that thsi field is free field.
    So whenever you want line item for a particular group in line item of vendors FBL1N in dyanamic selection select Corporate group and write the particular group you will get the report for that particular group only.
    thanks
    Deepa

  • How do you save your artwork in Photoshop CC 2014 as an PNG or JPEG file when it doesn't give the option?

    How do you save your artwork in Photoshop CC 2014 as an PNG or JPEG file when it doesn't give the option?
    Thanks for your time and help in advance.

    Thanks for replying. I actually got it to work. I had my work set to 32 Bits/Channel in stead of 16 or 8. Once I changed it to 16bit/Channel, it gave me the option to save as either file. Thanks again.

  • How do I update album artwork?

    I downloaded iTunes 7.0 with no issues, but no artwork was updated for music that I did not purchase on iTunes. Does anyone know how to update/browse for album artwork after ver 7 is installed?

    *Why is artwork not showing on my iPod when it's there in iTunes?*
    iTunes will display a cover in many of it's views provided at least one track from the album has embedded artwork. The iPod appears to load only the artwork from track one to create the cover flow and album views which means that it can sometimes fail to display art for albums even when you can see the art in iTunes. Further, when tracks are played on the iPod, artwork is displayed if and only if it exists in the currently playing track, so track one may show art while track two does not.
    *How to find tracks without artwork*
    To find all the tracks without artwork so that you can update them you can try http://www.stum.de/itunes-find-tracks-without-artwork/ for Windows or http://dougscripts.com/itunes/scripts/ss.php?sp=trackswithoutartwork for Macs. Use Google, Amazon, Discogs etc. to locate relevant images. Ideally these should be square, 320x320 pixels or above and borderless to give the best results in the various menus. If you have artwork for some tracks of an album, but not others, find the album in the main music folder, select a track with artwork, right-click (Option-Click for Macs) on the art & click copy, then select all the tracks of the album, use CTRL-I or Command-I to *Get Info* and then paste the image into the artwork box.
    I say 320x320 because I believe (from using TouchCopy) that it's the size used in the iPod cache so if you're going to crop or resize you might as well work to that size. Otherwise 200x200 is probably good enough.
    *Rebuild artwork cache*
    Sometimes the artwork cache becomes corrupt and fails to show correct artwork, even when this is properly set up in iTunes. To rebuild the artwork cache, connect your iPod to iTunes. Locate the iPod in the Sources pane on the left-hand side, then select the Music tab. Remove the tick from *Display album artwork on your iPod*, sync the iPod, reselect the option & sync again.
    tt2

  • How to upload podcast series artwork?

    I'm building my website with iWeb, hosting on my .mac account. I have a podcast on that site, which was approved by the iTunes store today. With that setup, how do I submit series artwork to the iTunes store? Thanks very much in advance!!

    There's an intriguing possible answer in another forum... here's the thread:
    http://discussions.apple.com/thread.jspa?threadID=1480877&tstart=0
    Basically, the person responding ("Certified" is the screen name) has made a tool that apparently posts your cover art to the iTunes store. I'm about to try it and see if it works. If so, then I'll post the news here.

Maybe you are looking for