Applying filter to s:bitmapImage makes images disappear!?

I wonder if anyone can help... I am attempting to apply a filter to s:bitmapImage but no matter if I do this in as3 or mxml as soon as i apply the filter the whole image disappears! I have tried this with different sorts of filter (dropshadow, glow) etc. but all do the same thing? Without any filter the image is show perfectly fine!
The source of my s:bitmapImage is generated programmatically at runtime and is linked via a binding...
Can anyone tell me what I am doing wrong?
Thanks,
Mark.

hi,
The following code uses a spark bitmapimage that has a blur filter and the filter seems to work with out issue.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
   xmlns:net="flash.net.*" creationComplete="application1_creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.utils.ObjectUtil;
import spark.filters.BlurFilter;
private var ldr:Loader = new Loader();
private  function btn_click(evt:MouseEvent):void  {
var arr:Array = [];
arr.push(new FileFilter("Images", ".gif;*.jpeg;*.jpg;*.png"));
fileReference.browse(arr);
private  function fileReference_select(evt:Event):void  {
fileReference.load();
private  function fileReference_complete(evt:Event):void {
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
ldr.loadBytes(fileReference.data);
//Alert.show(ObjectUtil.toString(fileReference));
private function onComplete(event:Event):void
ldr.contentLoaderInfo.removeEventListener( Event.COMPLETE, onComplete );
img.source = ldr.content;
protected function application1_creationCompleteHandler(event:FlexEvent):void
img.filters = [blur];
]]>
</fx:Script>
<fx:Declarations>
<net:FileReference id="fileReference"
   select="fileReference_select(event);"
   complete="fileReference_complete(event);" />
<s:BlurFilter id="blur" blurX="8" blurY="8"/>
</fx:Declarations>
<s:BitmapImage id="img" left="0" right="0" top="0" bottom="0" source ="@Embed('test.jpg')" fillMode="repeat"/>
<s:HGroup>
<s:Button id="btn"
   label="Browse"
   click="btn_click(event);" />
<s:Button id="btn2"
   label="Add Filter"
   x="50"
   click="img.filters=[blur]" />
<s:Button id="btn3"
   label="RemoveFilter"
   click="img.filters=[]" />
</s:HGroup>
</s:Application>

Similar Messages

  • CROPPING and SAVING makes images disappear

    Cropping and saving makes my images disappear in CS5 Extended

    I have Mac OS 10.7.5 and Photoshop CS5 Extended. I cropped both a jpeg and tif file/photo
    and then saved it - save as and/or save - and the image disappeared. The only thing that was visible was the file title with .jpeg or.tif extension, and the gray box or outline that goes around the image, but also some of the images the thumbnail image was gone too - just a title was visible on the desktop screen where I saved it. Are these images gone? Where are they? Where did they go and how do I get them back? And why is my crop tool and save doing this and how do I fix it?
    I was able to make other corrections like using Curves to photos and saved them with no problem. Just the crop tool does makes the images do this after or before I save it
    Thanks for any help you can provide.

  • In Premiere Pro CC 2014, the image disappears when I apply a mask of an effect. Why?

    In Premiere Pro CC 2014, the image disappears when I apply a mask of an effect. Why?

    Nevermind...
    Fixe:
    projects setting > switch Renderer.
    Thanks

  • PSE 10 crashes when applying filter

    Steps to reproduce
    1. Load image (In my case .NEF file)
    2. Select Smart Brush (either one)
    3. In the options bar, select    Show All > Florescent Chalk
    4. Apply filter. Elements starts creating multiple layers and than crashes.
    Can reproduce this every time and so far only with the Florescent Chalk filter. (Crashes with Raw and jpg)
    Windows 7 64 bit, 8GB mem, GeForce GTX 275 video

    The action Florescent Chalk should still show up for the Smart Brush Tool under show all.
    I had to start pse 10 up a second time before it would show (that's without rebuilding the media data base file)
    I think the updated action was just to address the crash with the smart brush tool and it would probably take a major rewrite of the action
    to enable it to work with a selected part of a layer and with the smart brush tool at the same time (the two effects use the same action), as
    most of those image effect actions are quite old and some haven't been changed much since photoshop 4 (the first photoshop version with actions around 1996/97).
    You should be able to make a selection on the layer, new layer via copy, then run the action from the effects panel for a similar result as just making a selection on a layer.
    MTSTUNER

  • How to apply lens correction profile to multiple images at once?

    I have a quick newbie question and I couldn't find an answer in a brief search that I did. Is it possible to apply lens correction profile automatically to multiple images at once? For my RAW images, LR automatically detects the lens and applies the correction profile for an image if I manually click on "Enable lens correction" option under Develop module (in the right pane where adjustments are made). However, I would like to do this to multiple images all at once.
    Thanks,
    Osho

    Be careful using develop setting synchronization for lens profile across mutiple images! This allows applying an incorrect profile (i.e. Canon 17-40mm profile with synchronization to images shot with multiple lenses) First use the 'filter' tool to make sure you select images shot with only one (1) lens type. Then follow one of the procedures here:
    http://help.adobe.com/en_US/Lightroom/3.0/Using/WS0E6E6886-E223-4050-B6E0-A97B5B62EF7D.htm l
    You can also change the "default" develop settings with 'Lens Profile' option checked and then save as the "new default" setting. LR will then "automatically" apply lens profile correction on import of new images.

  • Can I apply more than one keyword to images from the Control Bar?

    I swear this used to work. I select multiple images in a project. I apply a keyword to the selection by clicking a keyword button on the Control Bar. It gets applied to all the selected images. I click another keyword - it gets applied to only the first selected image.

    Michael, thanks for that quick response! Yes, that was it. Of course I don't know why I would have selected that option. It would seem to make sense to put this option in the Preferences instead of Edit - it would make it less easy to change accidentally.
    Regards,
    Francis.

  • Images disappearing in photoshop cs2...

    Hello Folks,
    I seem to have a problem brewing in Photoshop...Lately when I am working in Photoshop, if I have more than one image open at a time and I go to close one of them they all disappear from the screen but they are still open.  I have to go to Close All and start over.  Also, if I am using the polygon lasso tool, I will be carefully tracing a part of an image and suddenly the image disappears, while the window is still there, it turns grey and all I can see is the lasso tool traces I have made but I then have to start all over because I have to get the image back and the only way to do this is to end the lasso session and start over...The image will come back at some point after I reset the tool but I have to start all over again...I have updated everything, tried to optimize Photoshop performance but nothing seems to work...I am using windows media center edition sp 3 and have 1.87 gb of RAM.  I can't think of anything that corresponds to when this started happening, I didn't change much except I do always do windows updates but I choose which ones I want to install and what is junk...Unfortunately the scratch disk is the same drive as the program is on but at the moment I don't have an alternative, could this cause this situation?  Should I invest in a drive just for the scratch disk?  Or, if anyone has any other suggestions I am willing to try anything...This program is important to my work and I use it a lot...
    Thank you,
    Jennifer

    Off hand it sounds like video driver or low ram issue. Examples:Windows did an update that included a faulty video driver (which isn't very likely) or you install another program that wants to run in the background. The former usually require you to enable the download of hardware drivers for the update, the latter well even a virus could do that.
    Goto your video card makers website and get the latest driver that they recommend and then run msconfig (Start>run>msconfig) disable all the startup programs and see if that helps, when you are done, make sure you reenable the programs. Each time you use msconfig it will require a restart.
    If that don't help, next is check the hard drive making sure you have enough room, defraged and no errors.
    Next is to run a test on the ram. You should find one at downloads.com or take it to who ever services your system and let them do it. Mind you they will charge for time checking and cost of replacing the ram or HD is needed. This is definately a last step effort. Try to do as much as you can first to save some money, if if you are unconfortable doing this then the money is well spent.

  • Images "Disappear" When Moving a Project But Really They'r e Just Invisible

    Last night I imported 442 images into a new project. I rated them, and edited about 40-50. This morning I moved the project within the same library. When I did so, all the images disappeared, sort of. The project appeared empty. I let it sit a couple of minutes, and undid the move to no effect.
    I checked to see if a filter was blocking the images but it was not the problem. I checked the Project properties and it showed the images were all there (plus, I use referenced files and I hadn't deleted the CF card so worst case scenario I had all my originals). Also, when I displayed all the projects in a browser view window, the project showed up and I could sweep through all the thumbnails in the project browser. But again, if I selected the project and tried to see the images in either the browser, viewer, or split view, nothing showed up. No thumbnails, no file names, no empty thumbnails, nothing. The photos were sort of invisible.
    I "solved" the issue by moving an image - any image - from another project into the problem project. Suddenly that photo and all the other images, were visible. Removing the random image did not recreate the problem.
    Since I no longer have the problem I'm posting for 2 reasons: (1) to publish the problem and my fix in case anybody gets the same problem, and (2) to see if anybody knows what caused this and if there is a more direct fix than my weird indirect fix. Thanks.

    I have had the same thing happen consistently. I import images into a default project. Then when I move the project into an organizational folder... all the images disappear. After a couple of panics, I have now realized that if I stay calm, close Aperture, then open it again, the pictures are all present. Quite a pain in the butt, but at least there is a work around. Albeit a bit scary .
    Best,
    Jim

  • Embedded images disappear on column sorts when viewing SSRS via url in an iframe

    RE:   SQL Server - 2008 R2  Reporting Services
    We deliver an ASP.Net MVC (5) application and some of the views show/display SSRS report via url in an iframe (so the report is displayed vi the web viewer).   There are images in the header of some of these reports which display correctly on the initial
    view, but "disappear" when the user uses a report column sort and/or changes the report zoom (via the SSRS web viewer toolbar). There are other quirky behaviors as well (depending on the browser), but we are dealing with IE versions 8 thru 11.  I've
    already set the ReportViewer.aspx to use <meta http-equiv="X-UA-Compatible" content="IE=7">, and our application pages/views use <meta http-equiv="X-UA-Compatible" content="IE=edge">.
    Does anyone have a "fix" for this? I know it's related to the ReportViewer.aspx and displaying the report(s) in an iframe, but I can't seem to find any information on how to fix the issue.

    Hi,
    According to your description, when you preview report through url in an iframe, the embed images can be displayed, images can’t be displayed after users used sort and changed report zoom.
    To troubleshoot the problem, please refer to the following steps:
    Run the report in Business Intelligence Development Studio (BIDS) to make sure that the images can be displayed correctly.
    The issue may be relevant to compatibility of browser, please use different browser to check whether the issue persists.
    If you are using embedded image of jpg type, please change the extension of the image to png.
    Set the ReportViewer.aspx to use <meta http-equiv="X-UA-Compatible" content="IE=8">.
    Here is a relevant thread you can reference:
    https://social.technet.microsoft.com/Forums/en-US/56650bf4-e65d-4f84-8ac0-a57cb26543b2/image-disappears-when-sorting-in-ssrs-for-server-report-on-report-vieweron-aspx-page?forum=sqlreportingservices
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Why does my cropped image disappear?

    After importing a jpeg file into my pages document, I have tried repeatedly to crop ("mask") the unwanted portions of the image. When I am finished applying the mask, I have double-clicked on the image--exactly as the "help" page instructs--and the image completely disappears, leaving only the masked portion. I have tried double-clicking on the image, on the mask, on an area outside of the image and mask, and on the "edit" symbol below the mask. Every time the image disappears. What am I doing wrong?

    If you have masked it:
    Menu > Format > Mask with Shape > Choose
    don't you expect that the masked area is all that you will see when you are finished?
    There are several selections in the masking:
    1. The mask (Shape) itself, clicking on the mask handles you can size it
    2. The image which may or may not extend outside the mask. Clicking outside the mask, you get a grabber hand and can drag the image around inside the mask or resize it from the images handles
    3. The cropped image dragging on the corners or sides resizes the mask & the contents
    Clicking away from the image, sets the last edit.
    Possibly the image is very large and you are only seeing a tiny portion of it, say a corner.
    Have you clicked on the little and big icons in the Edit bar to rescale it as necessary?
    Peter

  • Images disappear after being selected from galleries

    I created an app in Project Siena that serves as a product catalog for our Remote Sales team to use on their tablets.  The app relies heavily on image galleries for navigation.  Everything works fine, except that as you navigate back and forth
    through the app pages, images that have been previously selected start disappearing from their gallery upon returning to their page.  Anyone seen this happen before?

    Hi Bruton, thanks for the quick response.  I'll try and break this down as simply as possible:
    -Built on Excel tables containing links to images.  The images are located in a mapped network drive that is synced offline. 
    -All images appear fine at first as you navigate through the app; then, as you go back to the Index page and go back through the same pages, you start to see previously selected images disappear from the gallery.  All the other images show up fine in
    the gallery.  Only the ones that have been selected previously disappear.  If you close that app and re-open it, voila, all images display without issue.
    -This same phenomena occurs while running the app in Project Siena; when the images start disappearing, I will update the data sources, and voila, the missing images come back.
    -There are four basic pages that each contain an image gallery: Index, Brand, Group, and Product
    -You drill down by selecting a brand, then a product Group, then an individual product (hence the 4 pages)
    -Note: some "brands" that are chosen take you directly to the Product page, bypassing the Group page
    -The image galleries on each page are used for the navigation (drilling-down to next level)
    -When you tap an image from the gallery, you launch the next page... below is the navigation code for the image gallery on the Brands page.  (I used "UpdateIf" function w/ 1=1 so it's always true, because I wasn't sure how to use other "Update"
    functions.)
    UpdateIf(CollectedGroup, 1=1, {Groups: Group_Gallery!Selected!Groups, GroupImage:Group_Gallery!Selected!GroupImage, BRAND: Group_Gallery!Selected!BRAND}); If(LookUp(ProductTable, Products in CollectedGroup!Groups, Products) = ThisItem!Groups, If(IsEmpty(CollectedProduct),
    Collect(CollectedProduct, Group_Gallery!Selected), UpdateIf(CollectedProduct, 1=1, {Products: Group_Gallery!Selected!Groups, ProductImage: Group_Gallery!Selected!GroupImage, BRAND: Group_Gallery!Selected!BRAND, Groups: Group_Gallery!Selected!Groups})), If(IsEmpty(CollectedGroup),
    Collect(CollectedGroup, Group_Gallery!Selected), UpdateIf(CollectedGroup, 1=1, {Groups: Group_Gallery!Selected!Groups, GroupImage: Group_Gallery!Selected!GroupImage, BRAND: Group_Gallery!Selected!BRAND}))); If(LookUp(ProductTable, Products in CollectedGroup!Groups,
    Products) = ThisItem!Groups, Navigate(Product_Page, ScreenTransition!UnCover, {BackScreen:"Brands_Page"}), Navigate(Groups_Page, ScreenTransition!UnCover, {BackScreen:"Brands_Page"}))
    Here is the navigation script for the Groups page gallery:
    Clear(CollectedProduct); If(IsEmpty(CollectedProduct), Collect(CollectedProduct, Group_Gallery_1!Selected), UpdateIf(CollectedProduct, 1=1, {Products: Group_Gallery_1!Selected!Products, ProductImage: Group_Gallery_1!Selected!ProductImage, BRAND: Group_Gallery_1!Selected!BRAND,
    Groups: Group_Gallery_1!Selected!Groups, GroupImage: Group_Gallery_1!Selected!ProductImage})); Navigate(Product_Page, ScreenTransition!UnCover, {BackScreen:"Groups_Page"})
    Data script for the gallery on the Groups page:
    Filter(ProductTable, Groups in CollectedGroup!Groups)

  • Why does my image disappear when I click on it to enlarge?

    I am using iPhoto '11, version 9.4.3  When I click on a single photo from an event to see and enlarge it, the image disappears, and what I see is a  black screen with a large triangle and an exclamation point inside the triangle.  What does this mean? I don't think the photo is actually disappeared because I can still see it in the smaller size.

    Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Image disappears when using transform function

    In Photoshop CS6, all of a sudden my image disappears when I try to transform a selection. Why is this happening? It didn't happen before, so maybe I accidently changed some setting, but I have no idea what it could be.

    Determine what make and model GPU you have, then go to the GPU maker's website and download the latest driver and follow their instructions to install it.

  • Crop tool making image disappear

    After upgrading to new iMac with OSX 10.8, using the crop tool in PSE 6 makes the image disappear. How to fix?

    There must be an option somewhere to "Reset this tool". I haven't used PSE6, so I can't tell you where it is.
    But when you select Crop tool, it must be in a dropdown in the crop options.
    See if Resetting the tool helps.

  • Aperture 3.2.4 macbookpro lion: image disappears after loading from any project; repairing everything on starting app doesn't fix it. Only restarting the computer works. Any help, please? ... in non-technical language please. Thanks

    aperture 3.2.4, macbookpro lion: image disappears after loading from any project; repairing everything on starting app doesn't fix it. Only restarting the computer works. Any help, please? ... in non-technical language please. Thanks

    “Hi Kirby, thanks a lot for your answer.
    I got one answer, from DMoore, saying:
    “Try Safe boot and then restart with only Aperture open.  Still doent work write back with more details like Ram, HD capacity/free space.  Are these thumbnails or Previews? Have you turned off building previews in AP preferances?
    Safe boot   http://support.apple.com/kb/HT1564
    Starting up into Safe Mode does several things:
    1  It forces a directory check of the startup volume.
    2  It loads only required kernel extensions (some of the items in /System/Library/Extensions).
    3  In Mac OS X v10.3.9 or earlier, Safe Mode runs only Apple-installed startup items (such items may be installed either in /Library/StartupItems or in /System/Library/StartupItems; these are different than user-selected account login items).
    4  It disables all fonts other than those in /System/Library/Fonts (Mac OS X v10.4 or later).
    5  It moves to the Trash all font caches normally stored in /Library/Caches/com.apple.ATS/(uid)/ , where (uid) is a user ID number such as 501 (Mac OS X v10.4 or later).
    6  It disables all startup items and login items (Mac OS X v10.4 or later).
    7  Mac OS X v10.5.6 or later: A Safe Boot deletes the dynamic loader shared cache at (/var/db/dyld/). A cache with issues may cause a blue screen on startup, particularly after a Software Update. Restarting normally recreates this cache.”
    As I don’t know much about the technical aspects of computers, I don’t really understand the first answer, and it sounds like following it might produce unwanted changes.
    But I understand your questions, so I’ll try to answer them;
    "loading from any Project" means that I encounter the problem when I’m using a project, possibly after/because I’ve left the Mac on overnight, and/or  I’ve made a lot of adjustments, and, once the problem is there, it happens in any other project which I open – the images load then disappear.
    I can see images in the Browser, so it only happens in the Viewer(s).
    I’m afraid I don’t understand what you mean by: “If you select "Photos" from near the top of the Library tab of the Inspector, does it show you all of your Images?”. I am a newcomer to Aperture, so I don’t know what some of the buttons are for yet, but when I want to look at and adjust my pictures, I import them, as referenced images, then Aperture creates a folder/project in the Library. When I click on that Project (when it’s working properly), all the images appear in the Browser or the Viewers  – without me needing to “select Photos from near the top of the Library tab of the Inspector”. I selected it and looked at all the items in the dropdown menu, but none of them seems to offer the option to ‘show all the images’. So I’m not sure how to answer your question except to say that – yes, I can see all the pictures in the Browser or the Viewers (when it’s working properly), but I don’t seem to need to use the Photos button to achieve this.
    Did Aperture work before?
    Yes it worked ok for a while, but I only purchased it on 24th May.
    If I understand correctly, the difference between thumbnail and preview is that the thumbnail is what I see when the “Loading” wheel is turning, and the disappearance of this wheel after a few seconds means that I am now looking at the preview (also, the thumbnail cannot be adjusted).
    So I think the problem occurs when the thumbnail has finished loading; the viewer going blank/grey might mean that it is not showing the preview.
    But I have not changed the default Preview settings in Aperture Preferences.
    My macbookpro details:
    2.7 Ghz Intel Core i7
    Memory: 8 Gb 1333 MHz DDR3
    Hard Drive capacity 499.25 GB
    Available 387.36 GB
    I have noticed another problem: I cannot apply the same rating to multiple images: following the instructions, I select a group of contiguous (or non- contiguous) images, choose a selection eg “5stars” using the keyboard, but the stars only appear in the last selected image – even though all the images are still showing as selected.”
    I hope this helps you to understand more.
    Thank you for trying to help me.
    Tony

Maybe you are looking for