Transparent image not recognized as transparent

I am loading a PNG with transparency into a UILoader. This
part works correctly, transparency and all.
Now I need to find out the rectangle that is transparent. I
found the getColorBoundsRect() function, and copied the
UILoader.content into a bitmapData, but when I run the
getColorBoundsRect it comes back with a Rectangle that has no width
or height - IE, it finds no transparent pixels.
To test, I tried using getPixel32 on an area of the image I
know is transparent, and it comes back to tell me that the pixel
alpha is 255?
Applicable code is attached.

I am an idiot. I forgot to set a parameter in the BitmapData
constructor, which tells it to keep transparent pixels transparent.
BitmapData defaults to changing transparent pixels to white, which
is why I was having problems.
var clBD:BitmapData = new
BitmapData(735,600,true,0x00FFFFFF);

Similar Messages

  • Disk Image could not be opened: image not recognized

    So I downloaded the free student versions of both Maya and Maya LT from the autodesk website. It took a little while to download the .dmgs, but once I got them, I couldn't run them. Every time I double click them the disk image mounter tells me "Disk Image could not be opened: Image not recognized." Why? What am I doing wrong? I could have sworn I downloaded the mac version of each program, could that have something to do with it?

    benchristianson,
    perhaps both of your downloaded disk images were only partially downloaded?

  • "Image not recognized" on img or dmg files...

    Hello all...
    Anyone had the same problem? I have just updated to OS Maverick and I tried to install a firmware for my external RAID. Downloaded from the official website but no luck. I get an error message "Image not recognized". Tried to open it with stuffit or RAR expander but same problem...
    Any advice?
    Thanks s lot...

    Possible solutions:
    Download the file again.
    Check if the file size matches what it says on the website. If the size is way off, then don't try to install it.
    If the source website provides it, verify the checksum of the file. Google "mac verify checksum of a file".

  • Error downloading Master Collection "image not recognized".

    I'm trying to upgrade to the Adobe CS6 Master Collection for my Macbook Pro, but when I download the file from here: Download CS6 products (in English), I get an error that says, "image not recognized", once downloaded and I try to open it.
    So, how do I fix that or where can I download the CS6 Master Collection?
    Thanks!

    An alternate resource for downloading CS6 is thru the following site (they still download the files from the Adobe servers).  You can download the trial version and use your serial number to activate to full use.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • I just bought Photoshop Elements 13 but I can't opened it. "image not recognized".

    I just bought Photoshop Elements 13 but I can't opened it. Everytime it says "image not recognized".
    Is it the wrong thing that I wanted to open? I don't know..
    What should I do?

    Hi,
    Can you just try to re-install pse. If you have downloaded it from any source, try to download it again and then re-install it.
    Thanks,
    Swapnil

  • I need to install a program and a message that says "image not recognized" appears

    I am working in the asctimetables software and I need the new version but when installing it a message that says "image not recognized" appears. What can I do?

    I found this on the asctimetables download page:
    The problem is that although the Apple icon is shown (red oval in lower right), the system requirements shown (red rectangle in lower left) show Windows machines only.  Further, the download is a .exe file that only runs on Windows.  So I suggest you contact asctables' help folks to see whether they really do have an OS X version available.

  • ImageView with transparent image not clickable

    I created an ImageView with an image with transparent portions. I also did some scaling and moving, which I though might cause this effect, but that is not the case. When I click on the transparent portion of the image the onMouseClick event is not fired. Other mouse events (mouse enter, mouse move, mouse exit, ...) get fired. Only when I click on the non transparent part the click event is fired.
    Image img = new Image(getClass().getResourceAsStream("barrel_icon.png"));
    ImageView view = new ImageView(img);
    view.setScaleX(0.5);
    view.setScaleY(0.5);
    view.setOnMouseClicked(new EventHandler<MouseEvent>() {
        @Override
        public void handle(MouseEvent mouseEvent) {
        System.out.println("Clicked on the scaled icon");
    StackPane root = new StackPane();
    Group group = new Group(view);
    group.setManaged(false);
    group.setLayoutY(-13);
    group.setLayoutX(-13);
    root.getChildren().add(group);
    The area between the barrel and the shadow belongs clearly to the image, however is transparent.
    I am wondering if there is a reason for this behaviour and what is the best way to work around this issue, as my image has large transparent portions and the non transparent parts are hard to click on.
    By the way this is all based on JavaFX 2.2.
    Regards
    Hotzst

    For future reference here is the workaround I have come up with:
    public class TransparentImageViewClickableArea extends Rectangle{
        private final ImageView imageView;
        public TransparentImageViewClickableArea(ImageView imageView) {
            super(imageView.getLayoutX(), imageView.getLayoutY(), imageView.getImage().getWidth(), imageView.getImage().getHeight());
            setOnMouseReleased(imageView.getOnMouseReleased());
            this.imageView = imageView;
            bindBounds();
        private void bindBounds() {
            DoubleBinding layoutXBinding = new DoubleBinding() {
                    super.bind(imageView.layoutXProperty(), imageView.scaleXProperty());
                @Override
                protected double computeValue() {
                    final double imgWidth = imageView.getImage().getWidth();
                    final double actualWidth = imgWidth * imageView.getScaleX();
                    double diff = imgWidth - actualWidth;
                    return imageView.getLayoutX() + diff/2;
            layoutXProperty().bind(layoutXBinding);
            DoubleBinding layoutYBinding = new DoubleBinding() {
                    super.bind(imageView.layoutYProperty(), imageView.scaleYProperty());
                @Override
                protected double computeValue() {
                    final double imgHeight = imageView.getImage().getHeight();
                    final double actualHeight = imgHeight * imageView.getScaleY();
                    double diff = imgHeight - actualHeight;
                    return imageView.getLayoutY() + diff/2;
            layoutYProperty().bind(layoutYBinding);
            widthProperty().bind(imageView.getImage().widthProperty().multiply(imageView.scaleXProperty()));
            heightProperty().bind(imageView.getImage().heightProperty().multiply(imageView.scaleYProperty()));
    It is not a perfect solution, as it does not consider the case that the image might be changed as well. This however could be improved easily but was not necessary in my use case.

  • InDesign PDF transparent images not printing right background color.

    problem with exporting an InDesign Document to a PDF and printing. My transparent images are showing up with a darker background than what they are placed on. Know how to help?

    Thanks everyone!  That really helped.
    There were a few other things that I had to make sure of also.
    Solution:
    Images placed in InDesign that were made in Photoshop or another program should be in ckmy format.  The background needs to be in the same ckmy.   Transparency blend must be set at CKMY, then Transparency Flattener presents must be set at Rasters/Vectors: 0 Line art and text resolution: 600, Gradient and mesh resoltuion 300.  Exporting to PDF must be done under present PDF/X-4:2008 Compatibility: Acbrobat 7.

  • Why is the itunes 11.1 disk image not recognized after download?

    I downloaded the new iTunes and am getting an error message that the disk image is not recognized and cannot be opened.  Any others having this issue?

    go to:http://www.apple.com/itunes/ and download directly from the web 225.6 mb file. Then just install normally.

  • Can't download flash player - 'Disk image not recognized'

    MAC OS X
    10.6.8
    2,4 GHz Intel Core 2 Duo
    I'm trying to download and install the lastest adobe flash player but having a little problem. It downloads without any problem but when I come to double click it it comes up with the following warning/error message.
    The following disk images couldn't be opened. Reason - Not Recognized
    I have no idea why this has suddenly come up.
    I've complete uninstalled Adobe flash player and tried to reinstall it but it still hasn't worked.
    I've also tried to open the 'install_flash_player_osx.dmg' file in Disk Utility but it says its 'Unable to attach'. One thing I have noticed is that the Disk write status is - Not mounted, read only
    I'm not sure what this means. If someone could help me out I would appricate it very much.

    Not certain what other issue may be the cause of the symptom(s) you've stated above, but there is a link to try & get an Adobe flash player plugin for Snow Leopard 10.6.8 through this page. Also note the comments by users there who relate experience, and an apparent link to a recent beta version(?)
    https://www.macupdate.com/app/mac/4783/adobe-flash-player
    While other system maintenance may need to be done for the computer to see any update correctly, there also is a chance the file may not be the proper one. Several exist at the Adobe site, some are not compatible.
    Good luck & happy computing!

  • NetBoot Images Not Recognized by Server

    I can use SIU to create NetBoot images from my install package just fine.   They end up in the Library/NetBoot/NetbootSP0 directory.   But the Server NetInstall images pane tells me that "No images available" regardless of where I place them.  The client sharepoints are available in the File Share service. I've followed the instructions from multiple sources (the all say essentially the same thing) to no avail.
    Now I'm just stuck.  This should be working, but I can't figure out what I'm missing.

    I'm not sure if I am answering the correct question or not...
    And my experience was on 10.6.8 server, with NetRestore rather than NetBoot.  Nevertheless I'll mention what I found in case it is helpful as they are very nearly the same process.
    I had awful problems in the past getting the whole process to work, it seems that it matters which machine you use to do the imaging.  What I found worked was to:
    - clone the disc you want to image onto a USB disc.  I can't remember what I used to do this, would have been either ditto or SuperDuper!  (I found in the past that CarbonCopy Cloner worked less well)
    - plug the USB disc into the server and run Disk Image Utility on the server
    For me this was the "Eureka" moment that made the whole thing suddenly work.
    Also I should mention that I found that it matters which network switch you use.  A TPLink switch didn't pass something that was needed for the NetRestore process to work, whereas an HP Procurve switch worked fine.
    HTH

  • Images not recognized

    Hi, I'm a newbie in Garageband, and I'm having trouble getting GB to recognize jpg and png image files. Image files that I took off the Internet work just fine. I can find them and put them into the timeline as I please. BUT image files that I put onto my Mac from a usb key don't show up in the Media Manager, and the two subfolders (one with internet images, the other with the ones from the usb Key) are in the very same folder.
    By the way, are any type of image file preferable in GB?
    Thanks a lot for any help.
    Bye,
    Mark

    Hi, thanks a lot. Dragging and dropping from Finder worked.
    One other question: when I dragged the image into the frame, it appeared all along the track. I only wanted to let it show a few seconds, in fact, so I had to go to the end, click on it and drag it way, way back to the beginning. Is there not an easier way of doing it?
    Thanks

  • ITunes crashing/10.6.8 Combo image not recognized

    I have been having the widely reported iTunes store crashes, as well as persistent permissions errors, slow performance, and difficulty buring DVDs from the Finder. Files can't be found, etc. although they are there and although I'd repaired permissions before trying to burn.
    I hoped that using the 10.6.8 Combo updater would repair these problems.
    It is a two-month old MacBook Pro running 10.6.8 (updated via Software Update).
    I have downloaded the Update Combo from the Apple site (http://support.apple.com/kb/DL1399) three different times, but each time I prepare to run the update, when I click on the dmg file, I get this error:
    I have downloaded the update at quiet times (including at night) and have no reason to believe there have been interruptions that might have corrupted the file. I am on a T1 connection.
    Is there a different source for the update image? Is there something else I can do? I have repaired the disk from Disk Utility on the install disk, have repaired permissions also from the install disk and from the mounted volume (including in Safe Boot). Each time there are many, many errors that are repaired.
    --Sarah

    Replying again. Many other crashes, in Safari, Skype, iTunes (store), iWeb, Dictionary. Frustrated, I went to the Apple Store today and had a session with a Genius. He could not install the 10.6.8 Combo Update on my machine from an external drive. Then he checked software updates and I saw a THunderbolt update I hadn't seen before. Downloading that allowed me to download the 10.6.8 Combo Update, and installing that update has apparently solved the problems.
    So the key is to install the updates as they come out. The Thunderbolt update was billed as being about "stability" and it seems to have resolved something in the 10.6.8 update that I'd done via Software Update.
    Resolved.
    Message was edited by: Sarah Pradt--added Safari as a program that had been crashing

  • RAW /RAF images not recognized by 10.4.11

    My Fuji Finepix 900 (highly recommended by several Mac magazines-that's why I bought it!) has a RAW shooting option. The icon .RAF shows on the desktop when I upload the image to the iMac, but cannot be opened.
    Neither Preview (loading an image to the desktop) nor iPhoto 5.04 recognizes the format. What can I do to display and save the image onto my iMac?

    Peter
    Unfortunately this is quite straighforward. Either 10.4 supports this camera's RAW format or it doesnt, and the latter seems to be the case. Options include using a RAW converter to turn it to a format that Macs can understand. There are several, have a look on MacUpdate. Even a basic search using 'raw' produces several options.
    Regards
    TD

  • I successfully downloaded Contribute 6.5, but when I try to install it, I get this message.  The following disk images couldn't be opened - Image: Contribute_6_5_LS12.dmg    Reason: image not recognized.

    I don't know what to do next. I'm running Mac OS 10.9
    Any suggestions?
    Thanks,

    Download using another browser.
    Mylenium

Maybe you are looking for

  • Airport Card Not Recognized on iMac DV 400 SE Slot Loading

    I just installed an airport card with adapter per Apple's instructions. It is not recognized in the Network list in System preferences. Internal Modem is listed as well as Built-in-Ethernet (with an active Internet connection). Has 10.3.9 and the lat

  • Expected object reference found execution

    I have a .NET DLL that has a method that takes as a by reference parameter an object of type NationalInstruments.TestStand.Interop.API.Execution. In TestStand 4.2.1 this worked fine if I passed it RunState.Execution. Now in TestStand 2010 I get an er

  • Multiple writes possible in DS in labview but not in CVI?

    Hi Am using Datasocket to communicate between to VI's, In one of the VI's am opening a new dataitem in "readwrite" mode and doing both read and write operation, and in the other VI am just writing on the dataitem by supplying the URL to the write fun

  • [BOEXI3] Interactive editor sample

    Hi. I have the need to embed the interactive viewer (and / or the java applet) in a custom application. To achiev that, I downloaded the interactive editor sample and tried to get the necessary information out of it. What I can do now, is - select a

  • How to bypass net-service-name

    When I login to database using SqlPlus with dba unix account,I go the following error message. command>sqlplus username/passwd ERROR: ORA-01034: ORACLE not available It is Ok for the following command. command>sqlplus username/passwd@service-name But