How to place a image in a page?

pls anyone guide me? how to place a image in a page?
thanks,
screen410099

Take a look at the code found in this function:
SDKLayoutHelper::PlaceFileInFrame
As expected you can find it in the SDKLayoutHelper file usually found in the Common folder of the SDK.  Anyway it has an example of one way of achieving your goal.
There are other ways as well.  Here is some code from one of my plugins which uses the LoadPlaceGunCmd boss:
          PMRect pRC = itemGeometry -> GetPathBoundingBox(InnerToPasteboardMatrix(pParentTransform));;
          // Create an ImportCmd:
          InterfacePtr<ICommand> importAndLoadPlaceGunCmd(CmdUtils::CreateCommand(kImportAndLoadPlaceGunCmdBoss));
          //InterfacePtr<ICommand> importAndLoadPlaceGunCmd(CmdUtils::CreateCommand(kImportFileCmdBoss));
          if (importAndLoadPlaceGunCmd == nil)
              ASSERT_FAIL("importAndLoadPlaceGunCmd invalid");
              break;
            URI URIPath;
            URIUTILS -> IDFileToURI(path, URIPath);
          // Set the IImportResourceCmdData Interface's data:
          InterfacePtr<IImportResourceCmdData> importFileCmdData(importAndLoadPlaceGunCmd, IID_IIMPORTRESOURCECMDDATA);
          if (importFileCmdData == nil)
              ASSERT_FAIL("importFileCmdData invalid");
              break;
          importFileCmdData -> Set(db, URIPath, (K2::UIFlags)0, kTrue, kFalse);
          ErrorCode status = CmdUtils::ProcessCommand(importAndLoadPlaceGunCmd);
          const UIDList* imageList = importAndLoadPlaceGunCmd -> GetItemList();
          if (!imageList || imageList -> Length() == 0)
              break;
          UIDRef imageFrame = imageList -> GetRef(0);
          InterfacePtr<IHierarchy> imageFrameHierarchy(imageFrame, UseDefaultIID());
          UIDRef newImage(db, imageFrameHierarchy -> GetChildUID(0));
          imageFrameHierarchy -> Remove(imageFrameHierarchy -> GetChildUID(0));
          // Create an placeGraphicCmd:
          InterfacePtr<ICommand> placeGraphicCmd(CmdUtils::CreateCommand(kPlaceItemInGraphicFrameCmdBoss));
          if (placeGraphicCmd == nil)
              ASSERT_FAIL("placeGraphicCmd invalid");
              break;
          placeGraphicCmd -> SetItemList(UIDList(newImage));
          // Set the IPlacePIData Interface's data:
          InterfacePtr<IPlacePIData> placePIData(placeGraphicCmd, IID_IPLACEPIDATA);
          if (placePIData == nil)
              ASSERT_FAIL("placePIData invalid");
              break;
          placePIData -> Set(pageItemRef, nil, kFalse);
          // Process the ImportAndPlaceCmd:
          status = CmdUtils::ProcessCommand(placeGraphicCmd);
HTH.
John

Similar Messages

  • How to place an image onto each page

    Hi !
    How do I place an image onto each page (like a logo in a sidebar) using Pages 5.5 ?
    Thanks,
    Karsten

    Karsten,
    I am surprised no one has answered you yet - there are so many Pages users here.
    I am not a Pages user but I did find one way here on this thread in an answer from Arno Jannarelly
    insert image to header in Pages, template header
    "If you want any layout item to be repeated to all of the pages of your document, you just have to select the item(s), then go to Arrange/Section Masters/Move Object to Section Master.
    The good thing of this is that you can repeat any item or group of items placed anywhere you want on the page."
    Now when I first tried it I had no luck, until I selected the image and went to Arrange > Section Masters from the main menu, not on the right hand side from the Format/Document area.  
    From there there is an option: Move Object to Section Master.
    You then can format your image with drop shadows, opacity, etc. and it should be there on new pages in Pages. 

  • How to place SVG image in web page?

    Attempting to use an SVG image for first time, saved out of
    Illustrator CS3. When I try to place it on a web page in
    Dreamweaver CS3, .svg file is greyed out. Dragging it onto page in
    design view just makes a text link to the image, that has to be
    clicked to display the SVG. What I really want to do is use SVG
    file as a background image (800 x 600 px) that scales to fill
    browser window - is that possible?
    System: Mac OS X 10.4.11

    There is no reliable way to size an 800 x 600 background
    image up or down
    according to viewport size. You could center the page. Thus
    your BG image
    would move to center with page color appearing on either side
    on wider
    displays.
    800 x 600 background image is quite large by web standards.
    Most web
    designers prefer to use small images or slices and then tile
    or repeat them
    horizontally and/or vertically.
    Examples here:
    http://alt-web.com/Backgrounds.shtml
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "driprint" <[email protected]> wrote in
    message
    news:fsk89k$e83$[email protected]..
    > Attempting to use an SVG image for first time, saved out
    of Illustrator
    CS3.
    > When I try to place it on a web page in Dreamweaver CS3,
    .svg file is
    greyed
    > out. Dragging it onto page in design view just makes a
    text link to the
    image,
    > that has to be clicked to display the SVG. What I really
    want to do is use
    SVG
    > file as a background image (800 x 600 px) that scales to
    fill browser
    window -
    > is that possible?
    > System: Mac OS X 10.4.11
    >
    >
    >

  • How to place multiple images?

    Hi,
    How to place multiple images?
    Regards,
    Learner

    Is the script creating the frames? If so, just assign each frame a
    variable, or make them all into an array. Then use something like:
    myFrame.place("aFile");
    If the script is not creating the frame, then are they live frames on
    the page, or are they actually on a master page?
    If they're on master spreads, you'll have to release them to the page
    you want. (I think it's myMasterFrame.override(myPage) where myPage is
    the live page you want to detach them on, but you'll have to double
    check that.)
    But presuming they're regular detached frames on a page, if you want
    your script to figure out which is the first and which is the second you
    can either use script labels in the UI and then search for the script
    label, or else you'll have to write a function that will get all
    rectangles on the page (myPage.rectangles.everyItem().getElements() and
    either do a clever javascript sort, or write a straightforward function
    to sort them by height and x-pos.
    Hope that sheds some light on the task ahead!
    Ariel

  • How to place an image in database and how to retrieve and display it in the front end

    how to place an image in database and how to retrieve and display it in the front end
    and to place an image in database and retrieve the image from database using xml
    please,help me out.

    Create a table with a Long RAW Datatype column for storing the Image Column Data.
    Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
    You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
    A save on the form saves the image in the Image item in the long raw column.

  • How to place the images in Indesign xml file by Javascript?

    How to place the images in Indesign xml file by Javascript?
    We got the Indesign xml file, how to give the image placement link by Indesign javascript? Please help me its urgent.

    Hi,
    You can pass the image url as a href attribute=> file:///Users/me/Documents/my_pic.jpg directly within your xml. It just needs that you pass a local, static and valid url.
    If you want to add image later once the xml is flowed and so target specific nodes and inject images, it's a bit more complex. If the node is not part of the layout, you may try to reach the XMLElement objet and such an attribute, then layout the element.
    var x = some XMLElement
    x.xmlAttributes.add("href","file:///Users/m/Documents/my_pic.jpg" );
    If already placed, then you have to get the associated pageItem, then place your file into it.
    pagItm.place ( File ( "/Users/m/Documents/my_pic.jpg" ) );
    Hope that helps,
    Loic
    http://www.loicaigon.com

  • How to place raster images as smart objects?

    I'm trying to duplicate Photoshop's File:Place menu functionality and I'm experiencing something that I can't figure out. (I've added my code to the end of this message.)
    I have a variety of test EPS images that I can run through the File:Place menu. They all appear on the document as "Smart Objects". That is I can then do a bunch of transforms to the image (like rotate, move, deform) before committing to the image to the document.
    The important point here is that some images, when opened by Photoshop, first ask that I "Rasterize EPS Format" while others just open up without comment.
    While doing these File:Place actions, I've been using the Listener plugin that comes with the SDK to generate code dumps of my actions. From these I've then generated my own code for placing images onto a document. I've had to re-arrange the code a bit to work in Objective-C so there's a good chance that I've done something wrong while translating.
    Now if you look at my code you notice a commented out section. If you uncomment those lines then you basically have what I got from the Listener plugin log. But the problem is that this code then doesn't act like the File:Place menu action. It creates a new layer, places the image on the page - but its gone one step too far and the image is no longer a "Smart Object". The image is committed to the layer.
    With a bit of experimenting I commented out the line that you can see commented out in my code. However, this does something odd. For all images you can see Photoshop put up a busy icon for a few seconds showing that it is process, but only images that Photoshop wants to "Rasterize EPS Format" actually appear on the page as Smart Objects. Trying to place the images that Photoshop doesn't rasterize results in nothing appearing.
    That's my problem. If I uncomment that line in my code then all images that I test with appear on the page - but not as Smart Objects. If I comment out the code then only images that Photoshop wants to rasterize appear - but those that do appear then appear as Smart Objects.
    So that's my goal: to place any image onto a document as a Smart Object just like Photoshop's File:Place menu command does. Any ideas where I'm going wrong?
    - (SPErr)photoshopPlayeventPlace:(char *)cPath
    PIActionDescriptor result = NULL;
    Auto_Desc descriptor;
    Auto_Desc offsetDetails;
    SPErr error = kSPNoError;
    Handle aliasValue = NULL;
    FullPathToAlias(cPath, aliasValue);
    do
    error = sPSActionDescriptor->PutAlias(descriptor.get(), keyNull, aliasValue);
    if (error) break;
    // error = sPSActionDescriptor->PutEnumerated(descriptor.get(), keyFreeTransformCenterState, typeQuadCenterState, enumQCSAverage);
    // if (error) break;
    error = sPSActionDescriptor->PutUnitFloat(offsetDetails.get(), keyHorizontal, unitDistance, 0);
    if (error) break;
    error = sPSActionDescriptor->PutUnitFloat(offsetDetails.get(), keyVertical, unitDistance, 0);
    if (error) break;
    error = sPSActionDescriptor->PutObject(descriptor.get(), keyOffset, classOffset, offsetDetails.get());
    if (error) break;
    error = sPSActionControl->Play(&result, eventPlace, descriptor.get(), plugInDialogSilent);
    if (error) break;
    while (false);
    if (result != NULL) sPSActionDescriptor->Free(result);
    if (aliasValue != NULL) sPSHandle->Dispose(aliasValue);
    return error;

    If you want to go with Batch I would recommend creating an Action of more or less these steps:
    • set the resolution to the same as the background image’s
    • change the image from Background Layer to regular Layer if necessary
    • convert it to a Smart Object
    • add a Drop Shadow Layer Style to the image (do not use Global Angle)
    • place the background image (File > Place …)
    • move it behind the image layer
    • Image > Reveal All
    • make Selection from that layer’s transparency (cmd-click its icon in the Layers Panel) and use Image > Crop
    • select and transform the image layer to fit the intended position
    This would naturally work out best if the images had the same size and proportions.
    For the reflection on the floor duplicate the image, flip it vertically, move it in position and reduce its opacity to maybe 10%.
    Realistically you may have to hide it partially behind the pillows, a Vector Mask would be an option.

  • How to place an image in JFrame

    hello
    i want to know how to place a image on JFrame
    i am not using any layout..
    pls help..

    Hi...
    To do this, u can look to tweak the paintComponent() method . All u have to do is create a JPanel subclass and override the paintComponent method to draw the image. then set it as the frame's content pane. that is because you work only on the content pane in swing. that should help.
    Source for ImagePanel :
    <code>
    package com.rsramanujam.help;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.image.*;
    public class ImagePanel extends JPanel
         Image backImage = null;
         public ImagePanel(Image backImage)
              try
                   this.backImage = backImage;
              catch(Exception e)
                   System.out.println("Could not get Image");
         public void paintComponent(Graphics g)
              Graphics innerG = g.create();
              if(backImage == null)
                   innerG.setColor(new Color(0xffccccff));
                   innerG.fill3DRect(0,0,getSize().width,getSize().height,true);
              else
                   innerG.drawImage(backImage,0,0,getSize().width,getSize().height,this);
         public void setBackImage(String path)
              ImageIcon ic = new ImageIcon(path);
              this.backImage = ic.getImage();
              repaint();
    </code>
    U can see a working example at http://www.geocities.com/ramanujam_off/java.
    There , download the app called RamHelp. It comes with a GUI that uses panels with Background Images.
    Regards,
    Ramanujam

  • How I put photos / images at facebook page? The files do not open.

    How I put photos / images at facebook page? The files do not open.

    The crash happens on setting up the audio hardware. Either you have a broken driver or your preferences is damaged. You can try deleting the MainStage preferences.

  • How to insert an image between two pages?

    How to insert an image between two pages? and how do remove the line of separation between two pages?.
    Attached image shows, there is a photo of two pages and no line of separation in the pages!

    Michi Thanks, but that option is only available on one page (2 columns), not to put two pages! see new image

  • How To place two images in a obiee 11g Report Page header

    Hi ,
    Greetings for the day!.
    I want to place two images (one at top left and another at top right ) above the table view . I am not sure how it is called as. i think it is page header . Can anyone let me know how to accomplish this ?
    Kind Regards
    Sudarshan

    Hi,
    Will you pls let me know the best pixel size can be given for both images ?
    Also how can i make the images left and right aligned .Formatting option is not allowing to move the images left or right.
    Pdf output of the report header should display images one at extreme left and extreme right.
    Will you pls let me know whether i can try in single view(title/static/narrative) with html code like below :
    <img src="smiley.gif" alt="Smiley face" align="middle" />
    If so pls provide the details.

  • How to place download link on jsp page to download files eg. Download PDF

    Hi,
    I have made an appliaction in struts 2 which creates PDF,its working fine now i want to place a link on my jsp page from where i can click and download that PDF file which i have created and store on my local location. Also i want to to know can i place links on my jsp page to download other type of files if i want to give link on my page to download Images or songs how can i do that,
    Help plzzzzzzzzzzzz

    IF You are using jsf then simply <h:outputLink value="file:///D:/Me/Image000.jpg"/>. This generates HTML <a> tag and value attribute replacing with <a> tag's href attribute.If you are using other technologies try to find which tag generates HTML <a> tag.
    I think You also can simply place HTML <a> tag wherever You want

  • How to upload an image in jsp page

    hi,
    I want to upload an image file with my jsp page, but i cannot do it,
    I have used Jakarta common file upload for this & i have also read following file. But my code isnot working properly? Can you give me any example how to upload an image & how to display it?
    Can u give me any source code? Please help me.
    http://jakarta.apache.org/commons/fileupload/using.htmlwith regards
    Bina

    Hi,
    But after writing the following code i have got following error? What's the problem of this code? please help me?
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <%@ page import="org.apache.commons.fileupload.*" %>
    <%@ page import ="java.util.*" %>
    <%@ page import ="java.io.*" %>
    </head>
    <body>
    <%
    boolean isMultipart = FileUpload.isMultipartContent(request);
    DiskFileUpload upload = new DiskFileUpload();
    List items = upload.parseRequest(request);
    Iterator iter = items.iterator();
    while (iter.hasNext()) {
    FileItem item = (FileItem) iter.next();
    if (item.isFormField()) {
    String name = item.getFieldName();
    String value = item.getString();
    //ring name= request.getParameter("")
    %>
    <%= name %>:<%= value %>
    <%
    } else {
    %>
    <%
    InputStream stream = item.getInputStream();
    OutputStream bos =
         new FileOutputStream(getServletContext().getRealPath("/images"+"/"+ item.getName()));
    int bytesRead = 0;
    byte[] buffer = new byte[8192];
    while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
    bos.write(buffer, 0, bytesRead);
    bos.close();
    stream.close();
    item.delete();
    %>
    </body>
    </html>Error is:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileUpload cannot be resolved
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileUpload cannot be resolved
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Please help me.
    With regards
    Bina

  • How to place an image on the dashboard in obiee 11.1.1.5  version

    Hi All,
    I am using obiee 11.1.1.5.I want to place an image on the dashboard.Can anyone help me on how to achieve this.
    Thanks,
    Praful

    Hi,
    In OBIEE 11g, an image needs to be placed in two locations. They are
    1. Middleware_Home\Oracle_BI1\bifoundation\web\app\res\your_skin\images
    Example: D:\OBI11g\Oracle_BI1\bifoundation\web\app\res\s_blafp\images
    2. Middleware_Home\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\your_skin\images
    Example: D:\OBI11g\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\s_blafp\images
    PS: In the above example s_blafp skin is used.
    Usage of the newely added image in a Title View:
    res/s_blafp/images/new_image.jpg
    Award points it is useful.
    Thanks,
    satya

  • How to add an image in multiple pages?

    Hi,
    First be aware that before posting this, I digged into Google but could not find a solution.
    How to add an image in the footer section of a PDF document of size, say, 500pages? I am not going to add it one by one in very page, it's too time consuming.
    Is there a way to add it in the footer section or any other alternative, so that I end up with the same image in an exact position in all 500 pages?
    Thanks for your reply
    Best,
    Eric

    Answer:
    Answer: http://forums.adobe.com/message/3437269#3437269

Maybe you are looking for