[CS3 JS] Get filename of image in a labelled frame

Hi,
I can easily get the content of a labelled text frame using
var myString = app.documents[0].textFrames.item("myLabel").contents;
Is is possible to get the name of an image placed into a similarly labelled graphic frame?
One way I thought of doing this is to look at the parent frame of each link in the document and test to see if it is labelled "myLabel" and then get the name of the linked file.
There must be a simpler way.
simon Kemp

You can create an array of all text frames labeled "myLabel" like this:
myArray = app.documents[0].textFrames.item("myLabel").getElements()
Then you can cycle through that array checking if an element has a graphics in it: if (myArray.graphics > 0)
Peter

Similar Messages

  • InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

    I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

    You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
    var doc = app.activeDocument;
    var textFrame =  app.selection[0];
    var rectangles = textFrame.texts[0].rectangles;
    if (rectangles.length > 0) {
         for (var i=0; i < rectangles.length; i++) {
              rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
    However, there is a better approach:
    Step 1
    Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
    Step 2
    Import the xml file -- the placeholders are replaced with data from the 1st xml element
    Step 3
    Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
    Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
    Hope this helps.
    Kasyan

  • Get bounds of image and bounds of frame of image?

    How can I get both the geometric bounds of an image AND the geometric bounds of the frame of the image as I loop through all the images in a document?

    Here's the Apple Script version of the script:
    tell application "Adobe InDesign CS3"
         set TheDocument to active document
         set TheGraphics to all graphics in TheDocument
         repeat with n from 1 to (count TheGraphics)
              set TheGraphic to item n of TheGraphics
              set TheLink to item link of TheGraphic
              set TheImage to parent of TheLink
              set TheFrame to parent of TheImage
              set ImageGB to geometric bounds of TheImage
              set FrameGB to geometric bounds of TheFrame
              set ImageVB to visible bounds of TheImage
              set FrameVB to visible bounds of TheFrame
              set TheText to "Name: " & name of TheLink & return & ¬
                   "Geometric Bounds of Image = " & ImageGB & return & ¬
                   "Geometric Bounds of Frame = " & FrameGB & return & ¬
                   "Visible Bounds of Image = " & ImageVB & return & ¬
                   "Visible Bounds of Frame = " & FrameVB & return & return
              my write_to_file(TheText, true)
         end repeat
    end tell
    on write_to_file(this_data, append_data)
         try
              set the log_file to (path to desktop as text) & "Geometric and Visible Bounds Report" as text
              set the open_target_file to open for access file log_file with write permission
              if append_data is false then set eof of the open_target_file to 0
              write this_data to the open_target_file starting at eof
              close access the open_target_file
              return true
         on error
              try
                   close access file log_file
              end try
              return false
         end try
    end write_to_file
    Kasyan

  • [GDI PLUS and win32] - why i only get a black image?

    heres my image class:
    class image
    private:
    ULONG_PTR m_gdiplusToken;
    Gdiplus::GdiplusStartupInput gdiplusStartupInput;
    HDC hdcimage=CreateCompatibleDC(NULL);
    Gdiplus::Graphics *graphic;
    Image *img;
    int imageheight=0;
    int imageweight=0;
    int framecount=0;
    int intSelectFrame=0;
    int framedelay=0;
    string strfilename="";
    Gdiplus::Color clrBackColor=Gdiplus::Color::Transparent;
    HDC hdcwindow;
    bool blnTransparent=true;
    public:
    image()
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    HBITMAP hbitmap=CreateCompatibleBitmap(hdcimage,1,1);
    SelectObject(hdcimage, hbitmap);
    image(HDC hdcWindow)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hdcwindow=hdcWindow;
    image(int width, int height)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hdcimage = CreateCompatibleDC(NULL);
    HBITMAP hbitmap=CreateCompatibleBitmap(hdcimage,width,height);
    SelectObject(hdcimage, hbitmap);
    framecount=1;
    image( const string & filename)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    if(toupper(filename[filename.size()-3])=='C' && toupper(filename[filename.size()-2])=='U' && toupper(filename[filename.size()-1])=='R')
    //create the transparent icon handle
    HCURSOR hicon = (HCURSOR)LoadImage(NULL, filename.c_str(), IMAGE_CURSOR, imageweight, imageheight, LR_LOADFROMFILE|LR_SHARED|LR_DEFAULTSIZE|LR_LOADTRANSPARENT);
    ICONINFO ii;
    BOOL fResult = GetIconInfo(hicon, &ii);
    if (fResult)
    BITMAP bm;
    fResult = GetObject(ii.hbmMask, sizeof(bm), &bm) == sizeof(bm);
    if (fResult)
    imageweight= bm.bmWidth;
    imageheight= ii.hbmColor ? bm.bmHeight : bm.bmHeight / 2;
    if (ii.hbmMask) DeleteObject(ii.hbmMask);
    if (ii.hbmColor) DeleteObject(ii.hbmColor);
    HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC
    DrawIconEx(hdcimage,0,0,hicon,imageweight,imageheight,0,0,DI_NORMAL);//draw the icon to DC with right size
    //seems the DrawIcon(), always, draw it with 32X32 size
    framecount=1;
    else
    Gdiplus::Image img2(towstring(filename).c_str());
    HBITMAP hbitmap=CreateBitmap(img2.GetWidth(),img2.GetHeight(),1,32,NULL);
    SelectObject(hdcimage, hbitmap);
    Gdiplus::Graphics graphics(hdcimage);
    graphics.DrawImage(&img2, 0, 0, img2.GetWidth(), img2.GetHeight());
    Gdiplus::Font fnt(L"Verdana", 10);
    Gdiplus::SolidBrush solidBrush(Gdiplus::Color(255, 255, 0, 0));
    Gdiplus::PointF pt(2, 2);
    Gdiplus::Pen pen(Gdiplus::Color(255,0,255,0));
    graphics.DrawString(L"Drawing Text", -1,&fnt, pt,&solidBrush );
    graphics.DrawLine(&pen, 0, 0, 200, 100);
    imageweight=img2.GetWidth();
    imageheight=img2.GetHeight();
    UINT count = 0;
    count = img2.GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img2.GetFrameDimensionsList(pDimensionIDs, count);
    framecount=img2.GetFrameCount(&pDimensionIDs[0]);
    framedelay =img2.GetPropertyItemSize(PropertyTagFrameDelay);
    img=new Image(towstring(filename).c_str());
    image (const image &cSource)
    framecount=cSource.framecount;
    framedelay=cSource.framedelay;
    clrBackColor=cSource.clrBackColor;
    img=cSource.img->Clone();
    imageweight=cSource.imageweight;
    imageheight=cSource.imageheight;
    BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
    image& operator= (const image &cSource)
    framecount=cSource.framecount;
    framedelay=cSource.framedelay;
    intSelectFrame=cSource.intSelectFrame;
    clrBackColor=cSource.clrBackColor;
    imageweight=cSource.imageweight;
    imageheight=cSource.imageheight;
    BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
    return *this;
    property <int> SelectFrame
    Get(int)
    return intSelectFrame;
    Set(int selectframe)
    intSelectFrame=selectframe;
    UINT count = 0;
    count = img->GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img->GetFrameDimensionsList(pDimensionIDs, count);
    img->SelectActiveFrame(&pDimensionIDs[0],intSelectFrame);
    graphic=new Graphics(hdcimage);
    graphic->Clear(clrBackColor);
    graphic->DrawImage(img, 0, 0, img->GetWidth(), img->GetHeight());
    property<int> FramesCount
    Get(int)
    return framecount;
    property<Gdiplus::Color> Backcolor
    Get(Gdiplus::Color)
    return clrBackColor;
    Set(Gdiplus::Color bkcolor)
    clrBackColor = bkcolor;
    SetDCBrushColor(hdcimage,clrBackColor.ToCOLORREF());
    void draw(HDC control)
    //if (clrBackColor.GetValue() == Gdiplus::Color::Transparent)
    if (clrBackColor.GetValue()== Gdiplus::Color::Transparent)
    TransparentBlt(control, 0, 0,width(),height(),hdcimage, 0, 0,width(), height(), GetPixel(hdcimage,width()-1,height()-1));
    else
    BitBlt(control,0,0,width(),height(),hdcimage,0,0,SRCCOPY);
    //InvalidateRect(WindowFromDC(control),NULL,false);
    operator HBITMAP()
    HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC
    MessageBox(NULL,to_string(GetLastError()).c_str(),"error",MB_OK);
    return hbitmap;
    int height()
    return imageheight;
    int width()
    return imageweight;
    operator HDC()
    return hdcimage;
    ~image()
    delete img;
    Gdiplus::GdiplusShutdown(m_gdiplusToken);
    //SelectObject(hdcimage, hbmOld);
    DeleteDC(hdcimage);
    when i create an image object i must put a file name. now i need show it on menus, by HBITMAP. so i did:
    operator HBITMAP()
    HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC
    MessageBox(NULL,to_string(GetLastError()).c_str(),"error",MB_OK);
    return hbitmap;
    //on menus
    void bitmap(image imgImage)
    //HBITMAP bitimage = (HBITMAP)LoadImage( NULL, filename.c_str(), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
    HMENU hMenu = NULL;
    if(primeiromenu)
    hMenu = mnuBar;
    else
    hMenu = MenuHandle;
    SetMenuItemBitmaps(hMenu,menuposition,MF_BYPOSITION ,(HBITMAP)imgImage ,(HBITMAP)imgImage);
    i don't get any errors. my problem is: why i get only a black color?
    when i do:
    SelectObject(hdcimage, hbitmap);
    is copy everything from HDC to hbitmap, right?

    now works fine. thanks for all
    class image
    private:
    ULONG_PTR m_gdiplusToken;
    Gdiplus::GdiplusStartupInput gdiplusStartupInput;
    HDC hdcimage=CreateCompatibleDC(NULL);
    HGDIOBJ obj=NULL;
    HBITMAP btBitmap;
    Image *img;
    int imageheight=0;
    int imageweight=0;
    int framecount=0;
    int intSelectFrame=0;
    int framedelay=0;
    string strfilename="";
    Gdiplus::Color clrBackColor=Gdiplus::Color::Transparent;
    HDC hdcwindow;
    bool blnTransparent=true;
    public:
    image()
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    btBitmap=CreateCompatibleBitmap(hdcimage,1,1);
    obj = SelectObject(hdcimage, btBitmap);
    image(HDC hdcWindow)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hdcwindow=hdcWindow;
    image(int width, int height)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hdcimage = CreateCompatibleDC(NULL);
    btBitmap = CreateCompatibleBitmap(hdcimage,width,height);
    obj = SelectObject(hdcimage, btBitmap);
    framecount=1;
    image( const string & filename)
    strfilename=filename;
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    if(toupper(filename[filename.size()-3])=='C' && toupper(filename[filename.size()-2])=='U' && toupper(filename[filename.size()-1])=='R')
    //create the transparent icon handle
    HCURSOR hicon = (HCURSOR)LoadImage(NULL, filename.c_str(), IMAGE_CURSOR, imageweight, imageheight, LR_LOADFROMFILE|LR_SHARED|LR_DEFAULTSIZE|LR_LOADTRANSPARENT);
    ICONINFO ii;
    BOOL fResult = GetIconInfo(hicon, &ii);
    if (fResult)
    BITMAP bm;
    fResult = GetObject(ii.hbmMask, sizeof(bm), &bm) == sizeof(bm);
    if (fResult)
    imageweight= bm.bmWidth;
    imageheight= ii.hbmColor ? bm.bmHeight : bm.bmHeight / 2;
    if (ii.hbmMask) DeleteObject(ii.hbmMask);
    if (ii.hbmColor) DeleteObject(ii.hbmColor);
    btBitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    obj = SelectObject(hdcimage, btBitmap);//add the bitmap to memory DC
    DrawIconEx(hdcimage,0,0,hicon,imageweight,imageheight,0,0,DI_NORMAL);//draw the icon to DC with right size
    //seems the DrawIcon(), always, draw it with 32X32 size
    framecount=1;
    DestroyCursor(hicon);
    else
    Gdiplus::Image img2(towstring(filename).c_str());
    btBitmap=CreateBitmap(img2.GetWidth(),img2.GetHeight(),1,32,NULL);
    obj = SelectObject(hdcimage, btBitmap);
    Gdiplus::Graphics graphics(hdcimage);
    graphics.DrawImage(&img2, 0, 0, img2.GetWidth(), img2.GetHeight());
    imageweight=img2.GetWidth();
    imageheight=img2.GetHeight();
    UINT count = 0;
    count = img2.GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img2.GetFrameDimensionsList(pDimensionIDs, count);
    framecount=img2.GetFrameCount(&pDimensionIDs[0]);
    if (framecount>1)
    framedelay =img2.GetPropertyItemSize(PropertyTagFrameDelay);
    else
    framedelay =0;
    img=new Image(towstring(filename).c_str());
    free(pDimensionIDs);
    image (const image &cSource)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    framecount=cSource.framecount;
    framedelay=cSource.framedelay;
    clrBackColor=cSource.clrBackColor;
    img=cSource.img->Clone();
    imageweight=cSource.imageweight;
    imageheight=cSource.imageheight;
    strfilename=cSource.strfilename;
    btBitmap=CreateBitmap(imageweight,imageweight,1,32,NULL);
    obj = SelectObject(hdcimage, btBitmap);
    BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
    image& operator= (const image &cSource)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    framecount=cSource.framecount;
    framedelay=cSource.framedelay;
    clrBackColor=cSource.clrBackColor;
    img=cSource.img->Clone();
    imageweight=cSource.imageweight;
    imageheight=cSource.imageheight;
    strfilename=cSource.strfilename;
    btBitmap=CreateBitmap(imageweight,imageweight,1,32,NULL);
    obj = SelectObject(hdcimage, btBitmap);
    BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
    return *this;
    property <int> SelectFrame
    Get(int)
    return intSelectFrame;
    Set(int selectframe)
    intSelectFrame=selectframe;
    UINT count = 0;
    count = img->GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img->GetFrameDimensionsList(pDimensionIDs, count);
    img->SelectActiveFrame(&pDimensionIDs[0],intSelectFrame);
    Gdiplus::Graphics graphics(hdcimage);
    graphics.Clear(clrBackColor);
    graphics.DrawImage(img, 0, 0, img->GetWidth(), img->GetHeight());
    free(pDimensionIDs);
    property<int> FramesCount
    Get(int)
    return framecount;
    property<string> FileName
    Get(string)
    return strfilename;
    Set(string filename)
    delete img;
    DeleteObject(btBitmap);
    DeleteObject(obj);
    strfilename=filename;
    if(toupper(filename[filename.size()-3])=='C' && toupper(filename[filename.size()-2])=='U' && toupper(filename[filename.size()-1])=='R')
    //create the transparent icon handle
    HCURSOR hicon = (HCURSOR)LoadImage(NULL, filename.c_str(), IMAGE_CURSOR, imageweight, imageheight, LR_LOADFROMFILE|LR_SHARED|LR_DEFAULTSIZE|LR_LOADTRANSPARENT);
    ICONINFO ii;
    BOOL fResult = GetIconInfo(hicon, &ii);
    if (fResult)
    BITMAP bm;
    fResult = GetObject(ii.hbmMask, sizeof(bm), &bm) == sizeof(bm);
    if (fResult)
    imageweight= bm.bmWidth;
    imageheight= ii.hbmColor ? bm.bmHeight : bm.bmHeight / 2;
    if (ii.hbmMask) DeleteObject(ii.hbmMask);
    if (ii.hbmColor) DeleteObject(ii.hbmColor);
    btBitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    obj = SelectObject(hdcimage, btBitmap);//add the bitmap to memory DC
    DrawIconEx(hdcimage,0,0,hicon,imageweight,imageheight,0,0,DI_NORMAL);//draw the icon to DC with right size
    //seems the DrawIcon(), always, draw it with 32X32 size
    framecount=1;
    DestroyCursor(hicon);
    else
    Gdiplus::Image img2(towstring(filename).c_str());
    btBitmap=CreateBitmap(img2.GetWidth(),img2.GetHeight(),1,32,NULL);
    obj = SelectObject(hdcimage, btBitmap);
    Gdiplus::Graphics graphics(hdcimage);
    graphics.DrawImage(&img2, 0,0,img2.GetWidth(),img2.GetHeight());
    imageweight=img2.GetWidth();
    imageheight=img2.GetHeight();
    UINT count = 0;
    count = img2.GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img2.GetFrameDimensionsList(pDimensionIDs, count);
    framecount=img2.GetFrameCount(&pDimensionIDs[0]);
    framedelay =img2.GetPropertyItemSize(PropertyTagFrameDelay);
    img=new Image(towstring(filename).c_str());
    free(pDimensionIDs);
    property<Gdiplus::Color> Backcolor
    Get(Gdiplus::Color)
    return clrBackColor;
    Set(Gdiplus::Color bkcolor)
    clrBackColor = bkcolor;
    SetDCBrushColor(hdcimage,clrBackColor.ToCOLORREF());
    void draw(HDC control)
    //if (clrBackColor.GetValue() == Gdiplus::Color::Transparent)
    if (clrBackColor.GetValue()== Gdiplus::Color::Transparent)
    TransparentBlt(control, 0, 0,width(),height(),hdcimage, 0, 0,width(), height(), GetPixel(hdcimage,width()-1,height()-1));
    else
    BitBlt(control,0,0,width(),height(),hdcimage,0,0,SRCCOPY);
    //InvalidateRect(WindowFromDC(control),NULL,false);
    operator HBITMAP()
    return btBitmap;
    int height()
    return imageheight;
    int width()
    return imageweight;
    operator HDC()
    return hdcimage;
    ~image()
    //delete graphic; //isn't needed, because i, now, don't use it //and i don't use the new keyword
    DeleteObject(obj);
    delete img;
    Gdiplus::GdiplusShutdown(m_gdiplusToken);
    //DeleteObject(btBitmap);//don't show me the image. so isn't need too
    DeleteDC(hdcimage);
    thanks for all

  • Why do I get Media Type "image/ipeg" when uploading a PDF?

    I am getting this strange "image/ipeg" media type when uploading with FF (33.0.2 on Mac OS X 10.9.4), instead of "application/pdf." Viewing the request sent using Developer Tools, I get the following headers:
    Content-Disposition: form-data; name="test"; filename="test.pdf"
    Content-Type: image/ipeg
    Looking at mimeTypes.rdf in my that profile, I see
    <RDF:Description RDF:about="urn:mimetype:image/ipeg"
    NC:value="image/ipeg"
    NC:editable="true"
    NC:fileExtensions="pdf"
    NC:description="Document">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:image/ipeg"/>
    When creating a new profile and uploading a PDF, I correctly get "application/pdf", and sure enough, mimeTypes.rdf states:
    <RDF:Description RDF:about="urn:mimetype:application/pdf"
    NC:value="application/pdf">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/pdf"/>
    </RDF:Description>
    I have disabled all Add-ons to see if any of them was causing this, but no luck. I suspect it's either some add-on or OS app association (like OS X Preview) that's causing this, but I can't find the culprit.
    Has anybody ever encountered this? It's very straightforward to fix, but I would like to understand exactly what is going on because it sounds somewhat wrong to send "image/ipeg" as the Media Type for PDF.

    One way that odd content types can be added to the mimeTypes.rdf file is when you are presented with the download dialog (Open/Save/Cancel) for a novel content type and you associate it with a known application. But tracking down the exact site that caused this (assuming it was a misconfigured server) could be impossible.
    On Windows, bizarre things also could be incorporated from the Windows registry, but I don't know whether there is anything equivalent on Mac.

  • CS3-style of placing the images inside frames in CS4.

    Hi everyone,
    I'm trying to find a way to have the cs3 - style of placing the images into frames in the new Indy CS4. I mean when I hit cmd+D and draw a frame I don't want any scaling / fitting of the placed image. I know there's no scaling if you drop an image into existing frame but when you draw one on-the-fly it's either the frame that keeps the proportions of the image or when you hold shift the image gets scaled to fit into.
    I'd rather have the old style placing as an option - but didn't find such a switch anywhere in the prefs.
    Thnx.
    R.

    Interesting request. I wouldn't have thought anyone would want the older way of creating images in frames, but I guess there's always someone who wants the old ways.
    I can't find any preference to restore the behavior back to the pre-CS4 way.
    But if you want to work with images the old way, you can. Your commands are just a little different, in a different order. But you may actually save a step.
    Consider:
    b In CS3 you had to do the following:
    1. Drag to create a frame.
    2. Switch to the Direct Selection tool.
    3. If desired, change the position the image inside the frame
    4. If desired, scale the image inside the frame
    5. If desired, use the Fitting commands to fit the image inside the frame.
    b In CS4 you have to do the following:
    1. Drag to create a frame.
    2. Switch to the Direct Selection tool.
    3. Scale the image inside the frame.
    4. Position the image inside the frame.
    However, step 5 is probably eliminated as you already started with the image fitting inside the frame.
    I agree no one likes to need to learn new work habits, but it's not such a big deal.

  • I cannot add a Wi-Fi guest network. Gone to Utilities Airport Utilities and all get is an image/browser of my Airport Extreme. Looking for the browser which has the title Wireless but cannot find anywhere. I need help?

    I cannot add a Wi-Fi guest network. Gone to Utilities>Airport Utilities and all I get is an image/browser of my Airport Extreme. Looking for the browser window which has the title Wireless but cannot find anywhere. What am I doing wrong?

    Open AirPort Utility. The first screen looks something like this:
    Click on the AirPort Extreme and another screen will appear. Click Edit, then the window with the Wireless tab will appear.
    If you do not see these screens, you will need to start over and configure your AirPort again.

  • How can I use applet to get the desktop image of client

    hi,I have a question to ask u.
    How can I use applet to get the desktop image of client? Now I develop a web application and want user in the client to get his current image of the screen.And then save as a picture of jpeg format ,then upload it to the server?
    I have done an application to get the screen image and do upload file to server in a servlet with the http protocal.

    Since the desktop image is on the client's local hard drive, you'll need to look at trusted applets first.

  • How do I use Adobe Edge to get faded header images on my website?

    Trying to use Adobe Edge to get faded header images on my website. Was referred to Adobe Edge because it is supposed to be easy for beginners. I was able to upload my images, but then there was no instruction/direction on what to do next. Everything I clicked just brought me somewhere else. I'm a novice who needs help with coding, as everytime I tried adding coding to my page, it messed it up. I would appreciate if someone can tell me what to do after I upload the images.

    Yes, Animate. Again, I uploaded the images, but then, I didn't see any directions on what to do next, as I would like fading header images for my website. I understand that it is supposed to generate the code for my website, which is where I need the most help.

  • How do I get a "transfer images" button to show up in the solution center?

    How do I get a "transfer images" button to show up in the solution center for my officejet 6500 709a on XP?
    Scan buttons are displayed and work, as does print.

    What installing the twain plug-in, you mean? Go to your applications folder. Find the Adobe Photoshop Elements 11 folder. Look in there for a folder called support files, then for a folder called optional plugins. In the Optional Plugins folder, there should be a folder called ImportModules. Just drag that from the Optional Plugins folder to the regular Plugins folder.
    This will be infinitely easier to do if you put your applications folder window into list view, not the default icon view. To do that, click this button at the top of the window:

  • How to get a .tif image with n different colors?

    Hi..i want to know how can i get a .tif image colored by some colors. I want to do something like this:
    if(tifImage.pixel < 0.1) {
    tifImage.pixel = yellow;
    else if( 0.1 <= tifImage.pixel && tifImage.pixel <0.5){
    tifImage.pixel = red;
    up to n colors.
    I prove the next code, but it is not getting the colors i want.
    public void generateImage(BufferedImage bi,double alto,double medio,String output){
              int width = bi.getWidth(); // Dimensions of the image
              int height = bi.getHeight();
              // Some constant colors (as arrays of integers).
              int[] red = {255, 0, 0};
              int[] green = {  0,255,  0};
              //int[] blue = {  0,  0,255};
              int[] yellow = {255,255, 0};
              //int[] background = { 85, 85, 85};
              int[] background = { 255, 255, 255};
              // The original image data will be stored on this array.
              int[][][] imageData = new int[width][height][3];
              // We'll fill the array with a test pattern bars thingie.
              double[] pixelArray=null;
              for(int w=0;w<width;w++)
                   for(int h=0;h<height;h++)
                        if(bi.getRaster().getPixel(w,h,pixelArray)[0]>=9000){
                             //lo dejo blanco
                             imageData[w][h] = background;
                        else if(bi.getRaster().getPixel(w,h,pixelArray)[0]>=alto){
                             //lo dejo rojo
                             imageData[w][h] = red;
                        else if(bi.getRaster().getPixel(w,h,pixelArray)[0]>=medio){
                             //lo dejo amarillo
                             imageData[w][h] = yellow;
                        else{
                             //lo dejo verde
                             imageData[w][h] = green;
              // Now we have a color image in a three-dimensional array, where the
              // third dimension corresponds to the RGB components.
              // Convert the color image to a single array. First we allocate the
              // array.
              // Note that this array will have the pixel values composed on it, i.e.
              // each R,G and B components will yield a single int value.
              byte[] imageDataSingleArray = new byte[width*height*3];
              int count = 0;
              // It is important to have the height/width order here !
              for(int h=0;h<height;h++)
                   for(int w=0;w<width;w++)
                        // Rearrange the data in a single array. Note we revert RGB, I still don't
                        // know why.
                        imageDataSingleArray[count+0] = (byte)imageData[w][h][2];
                        imageDataSingleArray[count+1] = (byte)imageData[w][h][1];
                        imageDataSingleArray[count+2] = (byte)imageData[w][h][0];
                        count += 3;
              // Create a Data Buffer from the values on the single image array.
              DataBufferByte dbuffer = new DataBufferByte(imageDataSingleArray,width*height*3);
              // Create an pixel interleaved data sample model.
              SampleModel sampleModel =
                   RasterFactory.
                   createPixelInterleavedSampleModel(DataBuffer.TYPE_BYTE,
                             width,height,3);
              // Create a compatible ColorModel.
              ColorModel colorModel = PlanarImage.createColorModel(sampleModel);
              // Create a WritableRaster.
              WritableRaster raster = RasterFactory.createWritableRaster(sampleModel,dbuffer,new Point(0,0));
              // Create a TiledImage using the SampleModel.
              TiledImage tiledImage = new TiledImage(0,0,width,height,0,0,sampleModel,colorModel);
              // Set the data of the tiled image to be the raster.
              tiledImage.setData(raster);
              // Save the image on a file.
              JAI.create("filestore",tiledImage,output,"TIFF");
    Thanks

    I tried that. When I open one image and set the exposure, then go to open the second image, nothing happens. I then saved one image as a psd file, then it would let me open the raw file a second time. When I had both open on the same screen and dragged the layer from one into another image, the layer size ended up being different than the other file. It was shifted down and to the left. I need these images to be pixel locked, and the user experience I went through did not allow me to do this.
    I also do not see a way to copy/paste layers between files.

  • How can you get a mirror image of a photo on iPhoto?

    How can you get a mirror image of a photo on iPhoto?

    By using an external editor. Preview is already on your Mac. It's called 'Flip Horizontal'
    In order of price here are some other suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • How to I get a mirror image of a 3D extrude and Bevel image?

    I created a ribbon using the extrude and bevel effect and then mapping it with a custom symbol. I copied the image and then tried to get a matching image on the flipside to mirror it but cannot seem to figure it out. Is there a way to somehow flip the orientation of the image? I tried using transform and then reflect and it does not do anything. I tried to do it manually in mapping and flipping the box upside down and in reverse but it just doesn't seem result in the a reflective image. Any ideas on this? Attached are the two images I am trying to get to reflect each other. Thanks

    It works so it is you who have perhaps a blind spot you have to select reflect X and move the object horizontally just look at my settings and the video.
    If you do not see a difference than what I have done and what Scott has suggested than what you actually did then he problem is something entirely different.
    Here is a video you can go wrong if you follow it.
    http://www.wadezimmerman.com/videos/TransformReflex.mov

  • How to get the full image directory when i upload the image to web page???

    hai, how to get the full image directory when i upload the image to web page???
    here is the example:
    <form action="uploadfile.jsp" method="post">
    image<input type="file" name="image" />
    <input type="submit" value="submit"/>
    <%
    String s=request.getParameter("image");
    %>
    <%=s%>
    </form>
    i upload the image from C:\image\center.gif. i use request.getParameter just can get the image name like "center.gif". Can anybody help me how to get the full path name. Thanks a lot..

    There is no need to get the path. It is also fairly pointless as the server cannot access the client's local file system.
    Carefully read this article how you can upload files the right way: http://balusc.blogspot.com/2007/11/multipartfilter.html

Maybe you are looking for

  • PR to be made mandatory field in Purchase Order

    Hello, PR to be made mandatory field in Purchase Order. How i can do this in SAP ? Regards Rahul

  • Roaming from AP to AP on same SSID

    Hi Guys, I have an issue where I have an AP in one room and another in another. When I walk from one room to the other, I lose signal but manages to see the SSID and join. But, I cannot seem to surf the Internet, I have to manually disconnect and rec

  • SSRS Reportmanage scroll issues

    Hello, I have developed the SSRS report using BID's and have deployed it to report server and when I try to view the report in the report manager it does not show the entire report and horizontal scroll bar appears even though there is lot of space i

  • I cannot find the source coue: WebsphereEpSsoLib.zip

    Although it is said in "How to Set Up Single Sign-On Between an IBM WebSphere Portal and the SAP Enterprise Portal Using JAAS" that can download it from http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4

  • SQL Server 2014 purchase in UK

    How do I buy SQL Server 2014 development edition in the UK?  The UK version of the MS online shop doesn't have it, Amazon UK doesn't have it, I can't find an MS Partner in the UK who sells that license.  I've tried a few other places (FR, ES) to no a