Read graphic Object properties 'scaling'

Hi all,
I am trying to read 'scaling' graphic Object properties values using in below code.  In case graphic having 60% that time also I am getting only 100%. So can I get some help? Thank you very much.
function CheckScaing(doc)
   graphicObj = doc.FirstGraphicInDoc;
while(graphicObj.ObjectValid())
        graphicObj = graphicObj.NextGraphicInDoc;
              if(graphicObj.type == Constants.FO_Inset)
                  name = graphicObj.InsetFile;
                  var insetDpis=graphicObj.InsetDpi
                  alert(insetDpis)

Hello,
There is no available built-in concerning the graphic objects displayed on the canvas. All you can do use another stacked canvas to show/hide the graphic objects located on it.
Francois

Similar Messages

  • FrameMaker 10 - Finding all graphics in a book with a Object Properties Scaling equal to 0%?

    Is there a way in FrameMaker 10 in the book to quickly find all imported graphics (.bmp, .cgm, .jpg, & .wmf) that are out-of-aspect ratio or where the Object Properties Scaling equals 0%?
    I import a lot of graphic (around a 100 or so) in FrameMaker 10 and I would like to be reassured that all imported graphic have the correct aspect ratio, and find any that are wrong quickly.
    I would like to be able to do this search in the Book format rather than each section.
    Is there a way to do this?
    Thanks!

    Denis, this would require scripting. ExtendScript would likely be the first choice and would be perfect for the job. Given that you want to operate on the whole book at once, the script would be a little bit longer, so you might not get someone to post it here for free. I would consider it because it would be a nice addition to the samples on my website, but I can't do it right this minute. If no one offers for free, hit me up in a day or two and I might be able to accommodate  you.
    One question though... are you really looking to verify the aspect ratio? This could be a considerably more complicated task. FrameMaker doesn't save the original ratio, so you would need to reimport the graphic into some other scratchpad area, calculate the aspect ratio, then compare it to the place of reference. I'm not sure that I could go that far.
    Alex, I think you may have misunderstood the question. Also, it's not even clear if these are structured files, and if so, if there is a structured application to save as XML.
    Russ

  • Canvas - Graphic object properties

    The problem is as following:
    I’ve got a form where objects are situated on two tab pages. A number of text_items are placed on rectangle graphic objects. My goal is to control visibility of those objects depending on certain conditions:
    With text items correctly works:
    QUANTITY_ID ITEM;
    QUANTITY_ID := find_item('PRODUCT.QUANTITY');
    set_item_property (QUANTITY_ID, visible, property_false);
    With graphics object I’m facing the problem with reaching the item:
    G_QUANTITY_ID ITEM;
    G_QUANTITY_ID := find_item('?????????????.G_QUANTITY');
    Placement of the object:
    Forms -> Canvases -> Tab Pages -> [Product] -> Graphics -> [G_QUANTITY]
    Where:
    [Product] – Name of the tab page
    [G_QUANTITY] – Rectangle graphic object
    I’ll appreciate any kind of help. Thanks in advance.

    Hello,
    There is no available built-in concerning the graphic objects displayed on the canvas. All you can do use another stacked canvas to show/hide the graphic objects located on it.
    Francois

  • GUI graphical objects properties

    I want to develop a GUI for an RF switching network where the user see a diagram of the actual network. I did something similar before but I was using a pdf of an autocad drawing of the network where I placed custom controls to represent the switches (see the attached front panel picture). By clicking on the switch it was changing position. Note that the switching network to be developped is a lot more bigger that the one showed. The GUI will be a top level diagram and by clicking on some section the detail of these sections will open and that's where the user will set the switches
    Now I would like the created path to change color to better see it. Is there a graphical application I could use where the line objects have properties that can be changed in LabVIEW? Or is there a way to do it in LabVIEW?
    Thanks for your suggestions.
    Ben
    Attachments:
    Switching Network.PNG ‏298 KB

    Have you reviewed the examples we have linked into the Picture Control thread located in the Breakpoint?
    THe center portion of the GUI shown in these two images was rendered using a Picture.
    and the same with 6 cells used and gas routed thru some cells.
    and for my model railroad I developed this interface so I can see which blocks are allocated to which cab control.
    Just trying to help,
    (another) Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to change font/ font color etc in a graphic object using JCombobox?

    Hello
    My program im writing recently is a small tiny application which can change fonts, font sizes, font colors and background color of the graphics object containing some strings. Im planning to use Jcomboboxes for all those 4 ideas in implementing those functions. Somehow it doesnt work! Any help would be grateful.
    So currently what ive done so far is that: Im using two classes to implement the whole program. One class is the main class which contains the GUI with its components (Jcomboboxes etc..) and the other class is a class extending JPanel which does all the drawing. Therefore it contains a graphics object in that class which draws the string. However what i want it to do is using jcombobox which should contain alit of all fonts available/ font sizes/ colors etc. When i scroll through the lists and click the one item i want - the graphics object properties (font sizes/ color etc) should change as a result.
    What ive gt so far is implemented the jcomboboxes in place. Problem is i cant get the font to change once selecting an item form it.
    Another problem is that to set the color of font - i need to use it with a graphics object in the paintcomponent method. In this case i dnt want to create several diff paint.. method with different property settings (font/ size/ color)
    Below is my code; perhaps you'll understand more looking at code.
    public class main...
    Color[] Colors = {Color.BLUE, Color.RED, Color.GREEN};
            ColorList = new JComboBox(Colors);
    ColorList.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ev) {
                     JComboBox cb = (JComboBox)ev.getSource();
                    Color colorType = (Color)cb.getSelectedItem();
                    drawingBoard.setBackground(colorType);
              });;1) providing the GUI is correctly implemented with components
    2) Combobox stores the colors in an array
    3) ActionListener should do following job: (but cant get it right - that is where my problem is)
    - once selected the item (color/ font size etc... as i would have similar methods for each) i want, it should pass the item into the drawingboard class (JPanel) and then this class should do the job.
    public class DrawingBoard extends JPanel {
           private String message;
           public DrawingBoard() {
                  setBackground(Color.white);
                  Font font = new Font("Serif", Font.PLAIN, fontSize);
                  setFont(font);
                  message = "";
           public void setMessage(String m) {
                message = m;
                repaint();
           public void paintComponent(Graphics g) {
                  super.paintComponent(g);
                  //setBackground(Color.RED);
                  Graphics2D g2 = (Graphics2D) g;
                  g2.setRenderingHint             
                  g2.drawString(message, 50, 50);
           public void settingFont(String font) {
                //not sure how to implement this?                          //Jcombobox should pass an item to this
                                   //it should match against all known fonts in system then set that font to the graphics
          private void settingFontSize(Graphics g, int f) {
                         //same probelm with above..              
          public void setBackgroundColor(Color c) {
               setBackground(c);
               repaint(); // still not sure if this done corretly.
          public void setFontColor(Color c) {
                    //not sure how to do this part aswell.
                   //i know a method " g.setColor(c)" exist but i need to use a graphics object - and to do that i need to pass it in (then it will cause some confusion in the main class (previous code)
           My problems have been highlighted in the comments of code above.
    Any help will be much appreciated thanks!!!

    It is the completely correct code
    I hope that's what you need
    Just put DrawingBoard into JFrame and run
    Good luck!
    public class DrawingBoard extends JPanel implements ActionListener{
         private String message = "message";
         private Font font = new Font("Serif", Font.PLAIN, 10);
         private Color color = Color.RED;
         private Color bg = Color.WHITE;
         private int size = 10;
         public DrawingBoard(){
              JComboBox cbFont = new JComboBox(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames());
              cbFont.setActionCommand("font");
              JComboBox cbSize = new JComboBox(new Integer[]{new Integer(14), new Integer(13)});
              cbSize.setActionCommand("size");
              JComboBox cbColor = new JComboBox(new Color[]{Color.BLUE, Color.RED, Color.GREEN});
              cbColor.setActionCommand("color");
              JComboBox cbBG = new JComboBox(new Color[]{Color.BLUE, Color.RED, Color.GREEN});
              cbBG.setActionCommand("bg");
              add(cbFont);
              cbFont.addActionListener(this);
              add(cbSize);
              cbSize.addActionListener(this);
              add(cbColor);
              cbColor.addActionListener(this);
              add(cbBG);
              cbBG.addActionListener(this);
         public void setMessage(String m){
              message = m;
              repaint();
         protected void paintComponent(Graphics g){
              super.paintComponent(g);
              Graphics2D g2 = (Graphics2D)g;
              g2.setColor(bg);//set background color
              g2.fillRect(0,0, getWidth(), getHeight());          
              g2.setColor(color);//set text color
              FontRenderContext frc = g2.getFontRenderContext();
              TextLayout tl = new TextLayout(message,font,frc);//set font and message
              AffineTransform at = new AffineTransform();
              at.setToTranslation(getWidth()/2-tl.getBounds().getWidth()/2,
                        getWidth()/2 + tl.getBounds().getHeight()/2);//set text at center of panel
              g2.fill(tl.getOutline(at));
         public void actionPerformed(ActionEvent e){
              JComboBox cb = (JComboBox)e.getSource();
              if (e.getActionCommand().equals("font")){
                   font = new Font(cb.getSelectedItem().toString(), Font.PLAIN, size);
              }else if (e.getActionCommand().equals("size")){
                   size = ((Integer)cb.getSelectedItem()).intValue();
              }else if (e.getActionCommand().equals("color")){
                   color = (Color)cb.getSelectedItem();
              }else if (e.getActionCommand().equals("bg")){
                   bg = (Color)cb.getSelectedItem();
              repaint();
    }

  • On import, graphics resized after displaying object properties

    Hello, my XML files contain many links to EPS files, such as:
    <image href="mygraphic.eps" align="right" id="0B">
    After importing the XML files, the graphics are sized correctly. They're exactly the size of the imported-by-reference graphic.
    Some of the graphics resize if I display the object properties or simply save the file. For example, an EPS will resize itself 20%.
    In one file that contains two images, only one might resize itself.
    My read/write rules have no rules to resize a graphic on import.
    What could I be missing?

    Thanks for the suggestion, I'll give it a try. But I'm not sure I can even read any temperatures from this old gpu. I ran sensors-detect and it found none.
    Also, if it was a heat issue, why does it go away as soon as I restart the X server? Surely it would still be overheating. Maybe it's time to take this thing apart again and clean it out.
    Last edited by xamindar (2015-01-17 16:29:38)

  • SMS_AD_SECURITY_GROUP_DISCOVERY_AGENT - Active Directory Security Group Discovery Agent reported warnings for 524 object(s). DDRs were generated for 0 object(s) that had warning(s) while reading non-critical properties.

    Hi, can anyone help me troubleshoot the following please:
    Active Directory Security Group Discovery Agent reported warnings for 524 object(s). DDRs were generated for 0 object(s) that had warning(s) while reading non-critical properties. DDRs were not generated for 524 object(s) that had warnings while reading
    critical properties.
    Possible cause: OU name or Security Group name may contain at least a Unicode character which has conversion problem between Unicode and your system ANSI locale(e.g. Korean characters in English System Locale). The site server might not have access to
    some properties of this object. The container specified might not have the properties available.
    Solution: Please verify the Active Directory schema for properties that are not replicated or locked. Refer to the discovery logs for more information.
    Does the error relate to 524 security groups? There are several invalid search paths listed in adsgdis.log, are these related?
    Thanks,
    Dale

    You'll have to examine the log to determine exactly which objects its referring to. Although this is in the context of group discovery, group discovery still creates DDRs for computer objects within those groups so it could be either groups or computers.
    This is not a search path issue though as it's clear that the discovery process found 524 different objects, but as stated, it could not properly read criticial properties of those objects and thus did not create DDRs for them.
    As mentioned, reading the log in detail will list the objects individually and the reason it could not create a DDR for it.
    Jason | http://blog.configmgrftw.com

  • In Object Properties dialog box, modify "tab path"...

    For FrameMaker versions up to and including 8 (and I suspect 9).
    Select a graphic, then click in sequence
    ESC g o to open the
    Object Properties dialog box. By default the dialog box opens with the insertion point in the
    Width text entry area.
    Now press TAB four times: The insertion point moves sequentially to the
    Height,
    Top,
    Left, and then
    Color text entry areas.
    I wish the last movement, to the
    Color text entry area, was replaced with movement to the
    Percent text entry area. This would enable me to use the keyboard to efficiently configure the size, position, and scaling of a graphic.
    As it is, I virtually never need to select the graphic's
    Color text entry area and the movement of the insertion point to that essentially useless tool drives me crazy: It makes me TAB all the way 'round the dialog box or grab the pointing device to get it to the
    Percent text entry area...
    Cheers,
    Riley

    Odd... What does your properties dialog look like? Can you post a screenshot of the dialog box? Also, what version of LabVIEW are you running?
    Message Edited by smercurio_fc on 06-03-2008 04:56 PM

  • Can't edit object properties (Acrobat X, Acrobat 8.x)

    I'm trying to tag a PDF for accessibility. I would like to be able to tag the images in the document as 'background'.
    Unfortunately, I'm not able to edit any of the object properties for images.
    Here's what I do:
    Expose the Content tools.
    Click Edit Object.
    Click to select an image.
    Right-click and select Properties.
    At this point, a multi-tab dialog pops up, in which all fields are disabled.
    I thought to work around the problem by going back to Acrobat 8.x, but I'm seeing the same behavior there.
    What step am I missing, here?

    These are the steps I've been told to use to edit the tags on an image:
    Open the Content section in Tools.
    Click 'Edit Object'.
    Click image to select it.
    Right-click image and select 'Properties'.
    Change to Tags tab.
    Set tag to 'Artifact.'
    These steps are impossible to complete, because all fields in the Properties (a.k.a. "TouchUp properties" [sic]) dialog are disabled.
    If in fact this has "nothing to do with tagging an image", then I shouldn't even be able to access the dialog, much less be able to access it and discover that all settings it exposes are disabled.
    In fact, every means that I've found so far that gives me access to the "TouchUp proerties" dialog for an image or a path, gives it to me with all fields except color disabled. (Please note: this is not just paths, it's also images. Even if it were just paths, that would be a serious problem, since any brochure or magazine layout is liable to contain a huge number of paths that need to be tagged as background images.)
    The ONLY ways so far that I've found that it's possible to edit the tags on an image are:
    Use 'Find...' as described above to bring the image/path/etc. into the reading order, and then use the TouchUp Reading Order dialog or right-click in the Reading Order pane to set it as background. This is inexact and time-consuming, especially for things like graphic-intensive brochures or magazine layouts.
    Use a marquee-selection in the TouchUp Reading Order tool to select objects and set them as background. This is inadequate because in many of the cases that I deal with, you'll still be left with a lot of objects you can't select in this manner. (Try using this method to select an image that has the same vertical or horizontal dimension as the page it resides on, for example.)
    If you are aware of another way, I wisth you'd tell me what it is.
    It sounds to me like you're thinking I'm using the Select Object tool. I'm not. It's pretty obvious that's not going to work, because it doesn't even afford access to the "TouchUp properties" dialog.

  • Zoom a 2D graphic object

    we can zoom a 2D graphic object by scale x,y coordinates.
    For instance, a rectangle will be enlarged to double size by doubling the coordinates,
    My question is to seek the idea of keeping the object size unchanged but zoom the inside detail?
    Just like mapquest,click zoom button more details will be clearly seen but the frame size unchanged?
    Thanks

    There are a couple of solutions to this that I can think of.
    The first would be to have bitmaps prerendered at multiple resolutions with all the detail necessary for that resolution, and then display the lowest resolution image that gives the greatest amount of detail for the resolution needed by the application at the time. This method is used in 3d graphics programs to show lower detail textures on objects that are farther away.
    For very high magnifications, the large images may have to be partitiioned into multiple subimages, and of course you would only display the ones necessary to fill the viewing window.
    The other method would be to not use bitmaps at all, but store things as Shapes, which you can scale as required via an appropriate AffineTransform as necessary.
    These two methods are not at all mutually exclusive, so combining them and using bitmaps in one area and scaled shapes in another is entirely possible.

  • Changing Graphics object

    Hoa can I change the color properties of the graphics object of one component in another component?

    The short answer is you can't. Graphics objects are not part of the state of a
    component -- they are created when rendering needs to be done and
    are disposed afterwards. Also, the same graphics object is shared: the same
    graphics objects is adjusted and used to repaint a frame and all its components,
    for example.
    Components do have some "graphical" state, however, like their foreground
    and background color and font. What is your goal?

  • Reading User Profile Properties pragmatically in SharePoint 2010 Returns Null Values Although it has values returned from AD

    Reading User Profile Properties pragmatically in SharePoint 2010 Returns Null Values Although it has values returned from AD
    I configured the user profile service application and run Sync and user profiles and its properties returned from Active directory but when I want to read it pragmatically it returns null values.
    this is my code...
       void runQueryButton_Click(object sender, EventArgs e)
               // Get the My Sites site collection, ensuring proper disposal
                using (SPSite mySitesCollection = new SPSite("http://sp/my"))
                    //Get the user profile manager
                    SPServiceContext context = SPServiceContext.GetContext(mySitesCollection);
                    UserProfileManager profileManager = new UserProfileManager(context);
                    UserProfile profile = profileManager.GetUserProfile("Contoso\\user");
                    foreach (Property prop in profileManager.Properties)
                       // if (prop.Name == "Department")
                        resultsLabel.Text += prop.DisplayName + ":" + profile[prop.Name].Value + "<br />"; ;

     Hi,
    Please try with the following code
          PrincipalContext principalContext = new PrincipalContext(ContextType.Domain);
                                SPServiceContext context = SPServiceContext.GetContext(site);
                                UserProfileManager profileManager = new UserProfileManager(context);                        
      foreach (Property prop in profileManager.Properties)
                       // if (prop.Name == "Department")
                        resultsLabel.Text += prop.DisplayName
    + ":" + profile[prop.Name].Value + "<br />"; ;
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • Trying to move a graphics object using buttons.

    Hello, im fairly new to GUI's. Anyway I have 1 class which makes my main JFrame, then I have another 2 classes, one to draw a lil square graphics component (which iwanna move around) which is placed in the center of my main frame and then another class to draw a Buttonpanel with my buttons on which is placed at the bottom of my main frame.
    I have then made an event handling class which implements ActionListner, I am confused at how I can get the graphics object moving, and where I need to place the updateGUI() method which the actionPerformed method calls from inside the event handling class.
    I am aware you can repaint() graphics and assume this would be used, does anyone have a good example of something simular being done or could post any help or code to aid me, thanks!

    Yeah.. here's an example of custom painting on a JPanel with a box. I used a mouse as it was easier for me to setup than a nice button panel on the side.
    Anyways... it should make it pretty clear how to get everything setup, just add a button panel on the side. and use it to move the box instead of the mouse.
    -Js
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.event.MouseInputAdapter;
    public class MoveBoxAroundExample extends JFrame
         private final static int SQUARE_EDGE_LENGTH = 40;
         private JPanel panel;
         private int xPos;
         private int yPos;
         public MoveBoxAroundExample()
              this.setSize(500,500);
              this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
              this.setContentPane(getPanel());
              xPos = 250;
              yPos = 250;
              this.setVisible(true);     
         private JPanel getPanel()
              if(panel == null)
                   panel = new JPanel()
                        public void paintComponent(Graphics g)
                             super.paintComponent(g);
                             g.setColor(Color.RED);
                             g.fillRect(xPos-(SQUARE_EDGE_LENGTH/2), yPos-(SQUARE_EDGE_LENGTH/2), SQUARE_EDGE_LENGTH, SQUARE_EDGE_LENGTH);
                   MouseInputAdapter mia = new MouseInputAdapter()
                        public void mousePressed(MouseEvent e)
                            xPos = e.getX();
                            yPos = e.getY();
                            panel.repaint();
                        public void mouseDragged(MouseEvent e)
                            xPos = e.getX();
                            yPos = e.getY();
                            panel.repaint();
                   panel.addMouseListener(mia);
                   panel.addMouseMotionListener(mia);
              return panel;
         public static void main(String args[])
              new MoveBoxAroundExample();
    }

  • Image in a Graphics object

    Hi, I'm dealing with the Batik API for working with svg images, but I need to do some wmf imager representation too.
    This API offers a class which is able to read WMF files, giving a "WMFRecordStore", that you can use to initialize a "WMFPainter".
    Anyway, this WMFPainter class has a "paint" method which I hoped that I could use to print the wmf info in the screen but... I don't know if it can be done.
    You must pass a Graphics object to the "paint" method.
    If I want to add an image to a JLabel, as I'd do with an ImageIcon, do I have to get the current JLabel Graphics object? Will the image keep displayed when repainting? Is this a correct way of doing this?
    thanks a lot

    if you have to paint special things on a component, you have to subclass the component and override the paint (or paintComponent) method. You don't want to be getting the graphics object from a component and draw on it, it's not going to work properly.

  • Need a Graphic Object for printing

    Hi,
    I generate a report with data from a database.
    At the moment I have an object that implements printable.
    Everytime the print method is called the report has
    to be created new.
    Now I want a seperate Graphics2D object in which teh report
    is created for once. And when a print
    job is started I want to copy it to the Graphics object
    in the printmethod.
    How can I create a Graphics2D Object for my own ?
    Thanx Stephan

    try:
    BufferedImage bufferedImage = new BufferedImage(500, 200, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = (Graphics2D) bufferedImage.getGraphics();
    g.drawString("Go to town!", 10, 10);This is how I did it when I needed to create images in a servlet. I expect it would also work for printing purposes... I guess I'll find out soon enough. :)

Maybe you are looking for

  • Song won't add to iPod Shuffle

    Just bought iPod Shuffle for my son. Purchased a Pink song from iTunes. No problem. Had an Iggy Pop song already on my computer. Iggy Pop song adds to iPod no problems. Pink song which was purchased all A-OK will not add to the iPod. Iggy Pop song pl

  • Mod function in java

    Hello everybody, I need help on mod fuction in java, but I don't know how can I use it, if you know how use it, please give a little example...thanks..

  • SQL query for tomcat certs in CUCM 8.6

    I have a query to see the server names and serial numbers, but I'm trying to expand that a bit. I want to look for a specific serial number. Here's my command: run sql select pkid,servername,serialnumber, from certificate where serialnumber = '265dbf

  • Cross-client Consolidation Statement

    Hello friends, I have a requirement.  I have a situation where two company codes are working in different clients.  They are using different chart of accounts also.  I want to make out a strategy for creating a consolidated Financial statement of the

  • Reg  T-Shirts on SDN

    Hi, Many of my co-workers recently received a SDN T-Shirt for crossing over 250 points, But I have earned more than 1100 points.But have not yet received any single mail/ intimation regarding T-Shirt by e-mail etc. till now. Let me know am II posting