Add an image above camera preview on an ANE for iOS

I'm building an ANE for iOS where I show the camera preview.
It works ok. However, I want to show an image above the camera preview (because I'm doing a barcode scanner) and I'm unable to see the image when I export release build my app in Flash Builder.
I use this code to show the preview camera and the image:
UIWindow *keyWindow = [[UIApplication sharedApplication]keyWindow]; UIViewController *mainController = [keyWindow rootViewController];  [mainController.view.layer addSublayer: self.prevLayer]; 
CALayer *sublayer = [CALayer layer]; sublayer.contents = (id) [UIImage imageNamed:@"overlayimage.jpg"].CGImage; [mainController.view.layer addSublayer:sublayer];
I've also tried to add the image in a subview, and with other method:
[mainController.view.layer insertSublayer:sublayer above:self.prevLayer];
But, it's the same.
I've also tried to add the image inside the Flash Builder project, but the image is behind the preview camera.
Do you know how I should do this?
Thank you very much.

I'm building an ANE for iOS where I show the camera preview.
It works ok. However, I want to show an image above the camera preview (because I'm doing a barcode scanner) and I'm unable to see the image when I export release build my app in Flash Builder.
I use this code to show the preview camera and the image:
UIWindow *keyWindow = [[UIApplication sharedApplication]keyWindow]; UIViewController *mainController = [keyWindow rootViewController];  [mainController.view.layer addSublayer: self.prevLayer]; 
CALayer *sublayer = [CALayer layer]; sublayer.contents = (id) [UIImage imageNamed:@"overlayimage.jpg"].CGImage; [mainController.view.layer addSublayer:sublayer];
I've also tried to add the image in a subview, and with other method:
[mainController.view.layer insertSublayer:sublayer above:self.prevLayer];
But, it's the same.
I've also tried to add the image inside the Flash Builder project, but the image is behind the preview camera.
Do you know how I should do this?
Thank you very much.

Similar Messages

  • How do I add an image above the navigation bar?

    I'm trying to add an image above the navigation bar and can't seem to do it without covering the links. Does anyone know how to do that?
    Thanks!

    Hi,
    select the page you want to add the image to
    open up the Inspector and go to the Page Tab (second from left)
    Choose Layout and increase the size of Header Height
    Regards,
    Cédric

  • How can I add an image above my portlet header ?

    Hi,
    Currently I am writing a portlet.I would like to add an image above the portlet header just like the standard portlets have.
    Does somebody know how I should realise this ?
    thanks
    Jerome

    Please take a look at FAQ at: http://technet.oracle.com:89/cgi-bin/ubbmisc.cgi?action=getannounce&ForumNumber=66&Start=2451891.99&End=2452276&Session=

  • Add signature image to pdf preview

    I have a medical practice where pdf's are created in a browser window to preview. I'm looking for a way to add an image of my signature to the pdf prior to printing.
    Currently I have to download to desktop and open with Preview (mac) or Foxit (pc) - add the signature; then print or fax or email.
    Is there a workaround or add on that will help?

    Firefox's PDF viewer and the Adobe Acrobat plugin are "read only" and you can't modify the PDF using either one. (In Adobe's you can fill in form fields if the creator of the PDF allowed that.) I don't know about Foxit, but it also might be "read only" in the browser.
    I've never heard of a plugin that lets you edit a PDF in the browser, perhaps because it would be difficult to save the results? But you might search around for one, maybe it's out there.

  • How do you add an image to the preview that doesn't show up in the live site?

    Is it possible to add an image that would take the place of " <> " ?

    No this is how it's done. This answer was provided by Nthsecret
    1) I create an image of my widget preview (ex. with photoshop);
    2) I add an image in a server or ftp;
    3) I add the image into file .mucow in this mode:
          <pageItemPosterHTML>
                <![CDATA[
                     <div><img src="YOUR_IMAGE" style=" height: HEIGHT_IN_PX; width: WIDTH_IN_PX;"></div>
                ]]>
          </pageItemPosterHTML>
         <pageItemHTML>
                <![CDATA[
                    <div></div>
                ]]>
          </pageItemHTML>

  • Add Copy/Image Above/Within Web Content Overlay?

    I'm attempting to add a 'this page requires an internet connection' line either within or above a web content overlay but can't get it to show up if there is no internet connection (aka the main point).  I'm basically trying to achieve the following from National Geographic:
    Any ideas on how to accomplish that within DPS?

    You may program local HTML file, that will check connection and either will display the 'this page requires an internet connection' message or will redirect user to the server's page. Then point to it from "URL or File" field for the Web Content overlay, so it will be saved inside the folio and will be available if no internet connection.

  • How to add iad's to window based application in xcode for ios

    hello,
    Im trying to add iad's to a window based application. I add the framework and add the banner in interface builder. The program builds without any problems but when I try to run the application on the simulator, the app crashes. Don't know what im doing wrong. Do I need to add any extra code or something. Please help, thanks in advance

    hello,
    Im trying to add iad's to a window based application. I add the framework and add the banner in interface builder. The program builds without any problems but when I try to run the application on the simulator, the app crashes. Don't know what im doing wrong. Do I need to add any extra code or something. Please help, thanks in advance

  • Is it possible to add bookmarks to a PDF file with Adobe Reader for iOS?

    In the App Store write-up on this app, it said that one could "Use bookmarks to jump directly to a section in your PDF file."  But I don't see how one can add such bookmarks.  Do they only mean that you can use bookmarks that were already in the document before you open it in Adobe Reader?

    Dennis (or any Adobe rep),
    Any updates to the OP's question? I'm with a large government agency, and we're moving away from GoodReader for reasons I can't go into here, and the ability to add user-defined bookmarks within the app is a mandatory feature for the document reader we select. I have the latest version of Adobe Reader (11.6.1) installed on my government iPad, and the ability to add user-defined bookmarks still seems to be missing. Does Adobe have any plans to add this feature, or is it already present and I'm simply overlooking it?
    Thanks,
    Cam

  • Bridge NEF view  - selected image altered - Camera Raw issue?

    I use a Nikon D700  and CS3 Bridge on a MAC OSX 10.4.11, and when browsing NEF images in Bridge there is an action performed on the image whenever I click on it. I use the settings where a filmstrip is along the bottom and upon selection a larger image appears above. Initially the image appears as I recall exposing it and looks balanced with good saturation, but after selection the image brightens and loses saturation after a few moments. When I open the image in Camera Raw I find that the Brightness is set at +50 and the contrast is set at +25, and the Blacks slider is set at 5. When I reset those parameters to zero I do not recover the look of the image as it was before selection in the bridge window. In order to do that I have to raise the saturation, decrease the brightness and do a fair amount of work to get back to the way the image appeared in Bridge prior to selection. Can anyone tell me what is happening to the image in bridge and how to keep the image from changing after I select it, or at least how to find the settings that have been evidently applied to the image?  If I right click on the thumbnail first, I find that the image will open in camera raw without any changes being made in Bridge, so I was able to make jpegs that show the difference between the two images. The first image is as it appears before selcting the thumbnail, and the second is the image in camera raw. If I were to have selected the image normally with a left click in Bridge, the photo as you see it in camera raw would have appeared in bridge and not been recoverable to its earlier state. Can someone help me undertand what is happening here? How can I find out what Bridge or Camera Raw is doing to the images and retain the appearance as it first appears in Bridge? Thank you for your help.

    This is a common question.
    What you see first in Bridge is actually a JPG which the camera has embedded in the NEF, and uses all the camera's color settings (contrast, saturation, etc.).  Once you select the NEF, ACR (Adobe Camera Raw) attempts to render its own preview of the NEF.  Because ACR does not understand the camera's color settings, it gives you its default rendering, which usually is somewhat different than the camera's.
    In newer versions of ACR (5.x), Adobe has profiles which mimic the camera's presets ('Standard', 'Vivid', etc.) and can be applied automatically in Bridge.  Unfortunately, you will need CS4 for this version of ACR (and these profiles have some issues of their own, e.g. http://forums.adobe.com/thread/479960?tstart=0).  You can also create your own ACR presets to more or less emulate a particular look (I believe you will need CS4 for this as well).

  • Why does my font color change when I add an image to InDesign?

    Hello, I am doing a page layout in InDesign and I am using a light blue font for my title but when I add an image from Photoshop, the font color turns dark blue. When I open the InDesign file in Adobe Acrobat, my title is still dark blue. It's only when I make a PDF of the file in Acrobat and open it in the Safari browser that the title goes back to its original light blue font. Is there something I can do to fix this? Thank you!

    Not a good idea. The flattened PSD has lost all its layers, adjustments, and effects. I hope you don’t need to edit it or change any layer’s visibility. Either that or you now have two files to keep track of and have neutered InDesign’s Edit Original feature. Better to take Peter’s advice and place the text above the image so it is not affected by transparency flattening. If you need the text below because you want the drop shadow to interact with the text, then use Overprint Preview (View menu) or Separations Preview (Window > Output) to get a more accurate view of the text colour.

  • How do you Automatically Copy Images From Camera?

    I would like to create an AppleScript that will run when I plug in my digital camera. Here is what I cannot figure out.
    How to make it run when the camera is plugged in.
    How tow to copy images from camera to a designated folder.
    Thanks!

    You can do all you requested - without 'AppleScript'.
    01. Connect your camera launch 'Image Capture' ('/Applications/' folder - if it does not automatically launch.
    02. Select the 'Image Capture, Preferences...' menu item.
    03. Click on the 'General' tab.
    04. From the 'Camera:' 'When a camera is connected, open:' pop up menu - select the 'Image Capture.app' menu item.
    05. From the 'Devices' menu select your camera from the menu items list. A window will appear with the title of your camera.
    06. From the 'Download To:' pop up menu select where to save the camera's photographs. You can select any folder anywhere on your hard disk drive(s).
    07. Click the 'Options...' button, and from the drop down sheet click on the 'Connection Options' 'Automatically download all items' check box - to add a check mark. There are other options you may have be interested in.
    08. Click on the 'OK' button.
    09. If you want to download the photographs now - click on the window's 'Download All' button. Or, to test the above setting changes - quit 'Image Capture' and disconnect your camera. Then reconnect the camera - and watch the above setting changes take effect.
    Note:
    The above automatic action can also happen if the storage device of the camera were inserted into a USB digital camera card reader. So long as apply the Steps above, and you select the USB digital camera card reader from the 'Devices' menu's menu item list in Step 05 above.
    'Image Capture' is not scriptable; but, may be control-able via 'tell application "System Events" to tell process "Image Capture" ....
    When a camera is connect to the Mac, the storage card of the camera is mounted onto the 'Desktop' and also listed, as an alias, in the (invisible) '/Volumes/' folder.
    Now that you know the name of the storage card ... you can create a 'Folder Action Script' (an example is presented below) and save it into the '/Library/Script/Folder Action Scripts/' folder,
    Open the '/Volumes./' folder (in 'Finder' via 'Go, Go to Folder' - enter '/Volumes/').
    Perform a right button click ('<control> - click, for single button users) on the 'Volumes' folder's window, and select 'Enable Folder Actions' (if not already).
    Rpeat the right button click (<control> click) and select 'Attach a Folder Action...' - selecting your script ('Volumes_FAS.scpt' as shown below).
    Below is a 'Folder Action Script' example - where you will have to substitute 'NO NAME' with the name of your digital camera's storage card's name.
    -- --- Save code as a script with the name 'Volumes_FAS.scpt' --- --
    on adding folder items to this_folder after receiving added_items
    set myStorageCard to "NO NAME" -- The name of my 1 GB stroage card. The name of your card may differ.
    repeat with i in added_items
    tell application "Finder" to set tName to (name of i) as string -- Obtain name of mounted storage card.
    if (tName is equal to myStorageCard) then my handle_card(i) -- If my storage card, continue processing.
    end repeat
    end adding folder items to
    on handlecard(localVolume)
    set folder_Path to ((path to desktop folder from user domain) as string) -- Path to 'Desktop' folder.
    set download_Folder to "NO_NAME Photographs" -- Name of folder to store storage card's items (files and folders).
    -- create download_Folder, if it does not exists.
    tell application "Finder" to if (not (exists folder (folder_Path & download_Folder))) then make new folder at (folder_Path as alias) with properties {name:download_Folder}
    -- Duplicate all the items (files and folders) of the storage device to the '~/Desktop/NO_NAME Photographs' folder.
    tell application "Finder" to duplicate items of local_Volume to (folder_Path & download_Folder) as alias
    end handle_card
    -- --- End of code --- --
    Review 'Finder's dictionary (in 'Script Editor') for the various ways to incorporate 'duplicate ...'.
      Mac OS X (10.4.4)  

  • Image Capture and Preview "folder not writable" error importing to shared folder

    I'm running 10.8.5 on a Late 2012 model Mac Mini. I'm trying to create a folder under my home directory where my wife can import pictures using Image Capture or Preview while logged into her account. I've tried setting permissions on the folder by setting POSIX permissions and ACLs from the command line, and also by setting ACLs using Get Info in Finder, but it seems as though both Image Capture and Preview ignore the ACLs and instead rely solely on the POSIX permissions for everyone/other (even when a relevant group is set). Unless the POSIX permissions for everyone/other are "rwx" Image Capture and Preview both give an error that the import failed, and /var/log/system.log shows errors that the "folder is not writable". I'd like to be able to set this up without making the folder and the files in it writable by everyone. My understanding was that ACLs should take precedence over POSIX permissions, but even the POSIX permissions don't seem to be getting handled properly, because the group is ignored. Any help or explanation of what's happening would be appreciated.
    Here's an example with details:
    Suppose we have the users alice and bob. We want to set permissions on the directory /Users/bob/importdir such that Alice can import files from a camera there using Image Capture (or Preview, either would do), but don't want to relax the permissions more than necessary.
    We create a group named bob_and_alice
    We set the following permissions on /Users/bob:
    POSIX: rwxr-xr-x, owner=bob, group=staff (i.e. default POSIX permissions)
    ACLs:
    0: group:everyone deny delete
    1: group:bob_and_alice allow list,search,readattr,readextattr,readsecurity
    2: user:alice allow list,search,readattr,readextattr,readsecurity
    "Get Info" shows "Read & Write" for bob and "Read Only" for alice, bob_and_alice, staff, and everyone
    We set the following permissions on /Users/bob/importdir:
    POSIX: rwxrwxr-x owner=bob, group=bob_and_alice
    ACLS: (these are already probably more permissive than should be necessary)
    0: group:bob_and_alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    1: user:alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    "Get Info" shows "Custom" for both alice and bob_and_alice, "Read & Write" for bob, and "Read Only" for everyone
    Alice opens a Terminal and cd's to /Users/bob/importdir. Alice can create and delete files in this directory.
    Now Alice opens Image Capture and with our camera connected we try to import a photo to /Users/bob/importdir. Image Capture shows an error dialog with the text "Import error. An error occurred while importing. The item 'foo.jpg' was not imported." /var/log/system.log shows the message: "Jul 20 22:12:34 computer_name.local Image Capture[32804]: Document destination folder is not writable" If instead Alice uses Preview it shows an error dialog with the text "The selected folder is not writable" and /var/log/system.log shows two error messages:
    Jul 20 22:23:45 computer_name.local Preview[33280]: Document destination folder is not writable
    Jul 20 22:23:45 computer_name.local Preview[33280]: Encountered error during image import: Error Domain=com.apple.ImageCaptureCore Code=-9934 "The selected folder is not writable" UserInfo=0x7ffda4881f00 {NSLocalizedDescription=The selected folder is not writable}
    Now we change the POSIX permissions on /Users/bob/importdir to: rwxrwxrwx
    The import succeeds with both Image Capture and Preview
    Can anyone explain what's going on here? Is there another reasonable way to do this without, moving this shared directory to /Users/shared?

    Did you figure out how to fix this?

  • I would like to add a new Canon camera profile to the RAW interface

    Hi,  I would like to add a new Canon camera profile to the RAW interface.
    I have recently installed the new camera profile 'Studio Portrait' which i download from here:
    http://www.canon.co.jp/imaging/picturestyle/file/studio-portrait.html
    When I open up a RAW files in Camera RAW, go to 'Camera Calibration', click on the drop down list called
    'Camera Profile'  I only see  'Adobe Standard, Faithful etc etc'.
    My questions are, can i add the same camera profile i put in my camera, into a folder with in photoshop?
    Or is photoshop reading the raw file and only seeing the default camera profiles?
    If I could see the new camera profile listed it would help with work flow.
    Best
    JL-B
    Please help, ive not had a good time waiting on the phone and trying to explain this to a live chat, hours have been wasted. Once i know the answer I can get back to the commission.

    Are you following this
    Apply a camera profile
    To apply a camera profile, select it from the Camera Profile pop-up menu in the Camera Calibration tab of the Camera Raw dialog box. The Adobe Standard profile for a camera is named Adobe Standard. Camera Matching profiles include the prefix Camera in the profile name. The Camera Profile pop-up menu displays only profiles for your camera.
    If the only profile in the Camera Profilemenu is Embedded, it means that you have selected a TIFF or JPEG image. Adobe Standard and Camera Matching profiles work only with raw images.
    Note:  If you have selected a raw file and Adobe Standardand Camera Matching profiles do not appear in the Camera Profilepop-up menu, download the latest Camera Raw update. 

  • Image Capture and Preview have trouble finding scanner. Photoshop no problem.

    Image Capture and Preview have trouble finding the scanner wirelessly unless it is on when the Mac starts up. Photoshop finds the scanner no problem. Any suggestions for Image Capture or Preview?
    The scanner is Canon MP620. Mac is MBP, running 10.8.2
    I have done all the uninstall, reinstall, update drivers, etc. Please don't bother suggesting that stuff.
    Thanks.

    As for the scanner - so is this new one wireless? When I hooked up my Epson All-in-One, I had to install it via USB first before I could install the wireless (per their instructions).  With Snow Leopard, I simply installed the driver and it covered and recognized both the print and scan function - not so in Lion; I had to go through hoops with the scanner part and it finally showed up as a separate unit. I thought that is silly, but - as long as it works.....  I'm trying to think of possibilities since I'm about out of ideas, so you might want to consider that (if it applies). The other troubleshooting suggestions usually include redoing the "add" function after a reboot.
    As for Image Capture, I am out of ideas. FWIW, I never use it - in my workflow, there is no need for it. Not sure if this would have an impact, but make sure that you choose Image Capture in the CDs&DVDs Preference Pane (mine is set to ignore or ask purposely):
    If that does not work, I'd suggest reinstalling the OS over the top of what you have.

  • Why do i keep getting "image is missing preview data" when trying to move files from bridge to PS ??

    I am not able to move multiple files to PS...regardless whether I am doing HDR or panorama.....get this "image is missing preview data" with the first file number of the series of files.
    #missingpreviewdata

    You don't "move" anything from Bridge "into" Photoshop.  You use Bridge to call on Photoshop to come and open the file(s), and Bridge simply hands the files over to Photoshop.
    The problem lies in how the files are being processed and saved.
    No one can help you until you provide complete and sensible details.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

Maybe you are looking for