Black and White Filter

Hello!
Is there anyway to apply a black and white filter over all the elements of a Group in Flex 4, please?

Hi,
below is the solution for you problem.Origionally all spark componets are having their label and text in red color.
But when you added these three lines inside the spark group all the elements becomes Black and White.
<s:filters>
                <s:ColorMatrixFilter id="cmf" matrix="{bwMatrix}" />
</s:filters>
So If you want to see them in origional color then comment these three lines.
Hope you will like it. Let me know if you have any issue.Below is code.
<?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">
    <fx:Script>
        <![CDATA[
            private var r:Number = 0.2225;
            private var g:Number = 0.7169;
            private var b:Number = 0.0606;
            [Bindable]
            private var bwMatrix:Array = [r, g, b, 0, 0,
                r, g, b, 0, 0,
                r, g, b, 0, 0,
                0, 0, 0, 1, 0];
        ]]>
    </fx:Script>
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
<mx:VBox width="800" height="600" borderStyle="solid" horizontalAlign="center" verticalAlign="middle">
        <s:Group>
            <s:filters>
                <s:ColorMatrixFilter id="cmf" matrix="{bwMatrix}" />
            </s:filters>
                <s:VGroup>
                    <s:Label text="Spark Label" color="0xFF0000"/>   
                    <s:Button label="Spark button" color="0xFF0000"/>
                    <s:TextArea text="Text area of spark" color="0xFF0000"/>
                </s:VGroup>
            </s:Group>
</mx:VBox>       
</s:Application>
with Regards,
Shardul Singh Bartwal

Similar Messages

  • "Old Black and White" filter does not play once rendered

    Hi,
    If I apply the Old Black and White filter to a clip, the effected clip does not get played in the timeline. Instead, iMovie skips right past it and on to the clip immediately following the effected clip.
    The effect does seem to be applied (the red progress bar moves along and it previews ok too), although the clip thumbnail is totally black instead of displaying the first frame of the modified clip. And, the clip object appears in the timeline (in both clip view and time view). iMovie just won't play it.
    I've tried the effect on different clips in the timeline, same result. Also, I've exported the clip by itself, reimported it, and then applied the effect, same result. I can reproduce the problem on three workstations.
    Has anyone heard of this problem?
    Thanks for your help,
    Glenn

    Hello Glenn and Karsten.
    I was interested so I tested this on a couple of my videos using my G5 DP Mac and iMovie HD 3.0.3 (267.2)
    Every rendered Old Black and White filtered clip I tried played properly, whether in time or clip view and whether full-screen or in the edit window. No problem here.
    Glenn can replicate the issue on three workstations. Are these workstations all accessing the same server for iMovie HD?
    EZ Jim
    G5 DP 1.8GHz w/Mac OS X (10.5.6) PowerBook 1.67GHz (10.4.11)   iBookSE 366MHz (10.3.9)  External iSight

  • Black and White Tips

    Hey,
    I'm going to be shooting a short film with my Canon HV20 in 24p/ black and white. I've gathered that it's best to shoot in color and then apply black and white filter in post. I've also gathered that lighting is crucial.
    1. Does anyone know of some good literature or video that educates on the art of lighting HDV for black and white?
    2. Is there something else that I should be prepared for?
    thanks,
    Trey

    If your final product is going to be B&W then I suggest you shoot B&W.
    Lighting for B&W is different than Color for starters. Not sure if your HV20 can do this or not, but if it can go for it.
    Here is one person's approach for a stylized B&W shoot for HDV
    http://www.hdvinfo.net/articles/sonyhdrfx1/fordhamhhd1.php

  • IPhone 5s - Camera Photos in Black and White

    I have a new iPhone 5s and for some reason, when I click on Camera to take a photo, on the main photo it comes out as black and white rather than colour.  If I switch to Square I get colour, but on switching back to ordinary photo, it goes back to black and white again.
    Anybody have any ideas about this?  I also have an iPhone 6 and checked on this, but when I open the Camera app I get colour too.
    Both phones are running the latest version - iOS 8.1.2.
    Thanks

    Your black and white filter is probably on. When taking a picture, in the bottom right, there are three circles overlapping. Click on that and chose "none".

  • Black and white printing using Gutenprint

    My HP printer has no drivers in SL, but I can print using Gutenprint.
    The Gutenprint FAQ says
    For most users, the work-around is to set the Color Model setting to Grayscale. This is not the same as printing in black and white only, but it may give you what you want.
    For those users who must use black and white only, the good news is that the Quartz Filter for Black and White still exists. It's just not tied into the print window. The easiest way to use the Black and White option is as follows:
    Go to print the document. Use the item "Open PDF in Preview" item under the PDF Services drop down menu at the bottom left of the print window.
    When the document appears in Preview, choose Save As... from the File menu.
    You can either change the name or use the Replace option when prompted. Select the output format as PDF and use the Quartz Filter to select "Black and White".
    Make sure you have the name and location to save the document as you want it. Click the Save button.
    The resulting document will be in Black and White and you can print it normally.
    I can guess what this means, but I am not certain, so I would be glad if someone has a definitive answer.
    My guess is that Grayscale usually prints using the colour cartridge, but that following this procedure lets one print using the black cartridge only.
    This is an important issue. Given the cost of colour cartridges, I only want to use them when I need colour, not for plain text.
    I would also be interested to know the difference between the two colour modes available, labelled Color and CMYK, but this isn't so important.

    Welcome to the Apple Discussion boards.
    The product brochure for the DP-C213 shows that PostScript is an optional add on. Are you sure that you have the PostScript module installed? Without the optional PostScript module, you will only get the raw PostScript code when you use the PostScript driver.
    The Gutenprint generic PCL drivers do not print color. They are grayscale only.
    The product brochure for the DP-C213 does show that it comes standard with the PCL 6 printer module. The best color driver would be the pxlmono/pxlcolor driver. You can download all you need from http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/pxlmon o. You will need to install three packages. The pxlmono, Foomatic-RIP, and the Ghostscript package.
    Now for the confusing part. When you go to set up the printer use the *"Generic PCL 6/PCL XL Printer Foomatic/pxlcolor (recommended)"* driver. That will give you color printing. The OpenPrinting database is in error and only shows your printer to be a grayscale printer, so you *do not* want to choose the "Panasonic DP-C213 Foomatic/pxlmono (recommended)" driver. That driver will only produce grayscale printing.
    EDIT: The URL for the product brochure is ftp://ftp.panasonic.com/pub/Panasonic/business/office/brochures/DP-C213_Brochure .pdf
    Message was edited by: Matt Broughton

  • Trouble printing black and white

    Friends,
    I'm trying to print black and white on an imac i7, snow leopard, hp premium plus all in one (309g) printer. The prints have a slight purple cast. It is highly noticeable when the prints are placed next to older black and whites printed with an HP 8450. I print out of Aperture normally, but I'm having the same problem printing from preview. I use hp paper and inks, and the hp printer profiles.
    Any ideas?
    Thanks!
    Steve

    On 28 Apr 2010 Steve wrote:
    Odd solution
    Posted: Apr 28, 2010 7:56 PM
    I used all current profiles for the printer. However, I just tried something different:
    I turned off colorsync and let the printer manage the colors. I got a MUCH BETTER
    black and white rendition. Who woulda thunk it -- all this effort to manage colors,
    and the printer does a better job than we do. Go figger.
    Thanks for your help.
    Steve
    You have the right idea, at least in some respects. The trouble with Apple's color managements system and pretty much all graphics programs these days is that those who coded them haven't got a foggy idea about black and white nor even grayscale. For instance the color filter for "black and white" is not true black and white, it is RGB gray; in other words it is using three colors to produce gray (or black) and that is just not the same. RGB gray images are still 24-bit images whereas true grayscale is 8-bit and true black and white is 1-bit. True black and white images can be very high resolution yet be very small files because of the phenomenal compression that's possible. Only those of use who actually work(ed) with black and white film and black & white ink on presses truly understand black and white color. Which is unfortunate because RGB gray is so poor and the files are just HUGE!
    I've encountered the same problem, and am trying to solve it also. Perhaps I can find a profile for true black and white. Or create one? For instance, as I mentioned above, Preview has a filter for black and white, (but only to save a pdf file) and if you then save the pdf file as a TIF via that black & white filter and then load the resulting image into a program that's actually capable of black and white, you will find that the file it created is actually RGB gray (24-bit) - it LOOKS gray but it's not. Whereas if you load a true black and white image into Preview (Preview unfortunately has no means of creating true black and white, nor even to convert back to color) then you will discover that now you have the option to save as 1-bit or 8-bit gray (1-bit being true black and white with no shades of gray and 8-bit being grayscale with 256 shades of gray i.e. 0 to 255).
    So while PAHU writes...
    Black and white printing of photos (aka grayscale printing) uses other colours,
    not just black, to make grays. If you can see a purple cast, this could be a result
    of the magenta not printing in the correct spot or being too prominent in the print.
    ...that is correct insofar as what printers/programs typically are doing with the given color profiles, but it is not correct. Grayscale should NOT use other colors; grayscale should use only black (which is also more economical). By turning off colorsync you likely enabled the printer's color management system to take over and print true grayscale (black ink only).
    So I don't yet have a solution, but I do agree that you've touched on a glaring deficiency in Mac OS color management and probably a great many graphic programs today, and likely the same goes for many printers.

  • Lexmark C54x - True Black and White Printing

    As shipped this 1200dpi color laser printer - C543dn works with Leopard over a network (yes!).
    There is only one thing I wanted to do that was not obvious - how to force black and white even when printing originally color images, and make sure only the black toner is used. A lot of websites use color, of course, and you may not want to pay for that either in time or toner!! As you probably all know the quartz filter option has been removed in Leopard, so unlike "another OS" you don't have a simple printer-independent "print mode" setting to set to black and white.
    After a lot of looking around for a manual which details the printer driver options (there isn't one - confirmed by Lexmark support) this is what I have puzzled out. BTW - There is an alternative approach that involves saving to pdf, and then using preview to resave the pdf with the quartz filter applied - but this is simpler if all you want to do is print.
    Basic stuff - Printer Independent
    You have to do the set up within "Print..." within in an application (like Firefox or Safari). When you select a Printer in the print dialog you can also use a Preset - it appears in the field under the printer name in the print dialog. To set up the profile the way we want it, first use the "downarrow" to the right of the printer name to access the extra print dialog options.
    Now you need to get the Mac to turn everything color in the output to gray - you do this by finding the "Color Matching" option -- its in a pull-down list (half-way down the expanded dialog, in some applications that list starts with the app name (like "Mail"), sometimes its in a list that starts with "Copies and Pages" - each application chooses how this page looks, adding to the confusion). Inside that option, you select "ColorSync" radio button and find the "Generic Gray Profile" in the pulldown. This is the replacement for the quartz filter. But that doesn't mean the printer will only use Black toner... that would be too easy!
    Printer Dependent bit - in this case Lexmark C543.
    Now move to the "Printer Features" options (also in the list that has "Color Matching") and a new sub-list pulldown will appear - for the Lexmark it has "Quality 1" as the first option.
    - In this sublist select "Quality 1" - set the Resolution field to 1200 dpi.
    - Then select "Color" (still in the sublist) and set the Color Correction field to "Manual".
    - Finally go to the "Manual Color" in the sublist and set all 3 of the RGB fields (Image, Text and Graphics) to "Display - True Black".
    After doing all those settings, go to the Preset field pulldown (the one under the printer name at the top) and select Save As... Give it a nice name (Black and White, perhaps?). This way you can recall this preset and all the settings easily. For color you can just go back to the Standard preset.
    Now you can print your monochrome masterpiece.
    This way I definitely got black and white (grayscale output). Verifying that only black toner was used is not a slam-dunk but it looks like it was. Anyone who has better info on the printer driver and the correct settings (maybe this was overkill even?) please feel free to correct/enhance.
    Hope this helps someone else.

    I really like the printer. It is fast, and it was a breeze setting it up as a network printer. Built in duplex is also very cool.
    The only drawback is that it uses a lot of toner, which gets expensive. So far I have gone through two black cartridges printing a little over 3000 pages. According to Lexmark, one cartridge is supposed to last 2500 pages, so that doesnt seem right. The pages I have been printing haven´t been THAT full.
    But maybe this applies to other brands as well? This is the only color laser printer I have owned.
    Anyone else with experience on this? I have been looking for toner refills, but so far no luck..

  • How can I print a colour PDF as a Black and White/?

    Is there a way I can print a PDF with colours as a black and white one?

    Is there a way I can print a PDF with colours as a black and white one?
    Do you mean black and white or do you mean grayscale?
    If you mean grayscale, then the Apple ColorSync Utility lets you build a filter that you apply in the PDF export interface or pick as a prebuilt filter that has already been inserted into the PDF export interface.
    There is a prebuilt filter for the Generic Grayscale Profile or if you build your own filter in the ColorSync Utility with your own ICC package you can determine which level of gray you want and which classes of object you want the filter to apply to.
    Basically, the ColorSync Utility functions as a colour server for PDF. If you know the Apple ColorSync Plugins for Adobe Photoshop 3-4-5, then the colour server functionality of the ColorSync Utility is simply the same thing applied to PDF rather than to raster images only.
    Hope this helps,
    /hh

  • I own a iphone 5 the camera in photo mode showing black and white and pictures

    My iphone 5 camera in photo mode showing black and white and pictures are captured in black and white only.how to make it in colour mode

    Do you have a filter turned on?

  • My black and white pictures show up colored

    My photos aren't the same as the filter I used in the camera when I was taking the picture, for example my black and white photos show up colored.

    Have you checked your ink levels and the inkjet jets for plugging?
    OT

  • Black and White photo with splash of color

    I just bought photoshop elements yesterday. I'm completely new to this and I want to know how to make a photo turn b/w, but keep a point of color,ex: a red hair bow but everything else b/w.

    Another way is to create a Hue/Saturation adjustment layer over your photo. (It's one of the choices that is found on your layer's pallet under the black and white icon.) This will create an adjustment that can be masked.
    Double click the adjustment layer with "Master" selected and move the saturation slider to -100. Once this is done you can use the paint brush to paint back color. (Black hides the adjustment; white reveals the adjustment; shades of gray provide a partial adjustment.)
    I think the mask option is preferable to using the eraser because you can easily go back and refine the image if you make a mistake. It also gives you the opportunity to change your mind without having to start from scratch. Another advantage is that your image will have a smaller file size.
    You can also use filters that work in gray scale on the mask. One useful one is Gaussian Blur. I like to paint my selection edges with a hard edged brush then soften (feather) the edges with the Gaussian filter. The Maximum and Minimum filters are useful if you need to expand or contract the mask edge a little.
    If you want to have more control over the black and white adjustment, use the pull down menu in the Hue/Saturation adjustment dialog to select each color; reduce each of the colors to -100 Saturation; then go back and adjust the "lightness" slider of each color to taste.
    HTH,
    Terri

  • Extracting Photograph Noise as a black and white layer from Photograph

    I am looking to extract natural noise from a photographs material and create a black and white layer out of it, but I am new to photoshop and unsure how to proceed with this.
    For example, here is a photograph of a hard plastic gun.
    [IMG]http://dl.dropbox.com/u/2871613/racer/G36.jpg[/IMG]
    I have seen on forums where users will find a good reference image and use it to create a new black and white noise picture utilizing the reference.
    For instance the hard plastic noise from the gun, might look like this once extracted and done correctly.
    [IMG]http://img.photobucket.com/albums/v11/wwarriorww/hard_plastic.png[/IMG]
    Any ideas on how to produce something such as this?
    Thank you

    This is just off the top of my head...  You could try something like this:
    1.  Duplicate the image as a second layer.
    2.  Run a noise-reduction tool with aggressive settings, possibly multiple times.
    3.  Set the noise-reduced layer to Difference.
    4.  Merge layers.
    5.  Filter - Other - High Pass.
    6.  Enhance the magnitude of the result with a curves or levels operation.
    -Noel

  • Can I create black and white movies using the iMovie app for the iPad?

    I would like to make a black and white movie using the iPad iMovie app.  Is it possible to film in black and white instead of color?

    station_two wrote:
    You can open and edit TIFFs, PSDs and JPEGs in Adobe Camera Raw, not just true raw files from a digital camera.
    This may sound strange, but I actually got to the stage of regretting ACR several versions back, because you ended up with nothing to do in Photoshop.  When you think how far ACR has come since then, you can see how Lightroom (with the same RAW conversion engine and features) is all most photographers need.  Adding ACR as a filter inside Photoshop was a master stroke.  I wonder who thought of it?  Russell Brown would be a good bet, but Chris Cox has made it clear on more than one occassion, that us lay folk dramatically underestimate what goes into coding, intergrating, and proving new features.
    BTW  That was not a straight line for some joker lauch into tails of woe about all the bugs that make it into final release versions.

  • Preview is destroying my black and white photos!

    I just love Preview App for quick rotating my pictures after scanning from film. But that love disappeared after Maverick update.
    I think I know what's happening but don't know how to avoid it. Preview is assigning a BW profile during saving that makes my pics much darker. It happens every time I rotate a pic so after 4 rotation my picture is almost completely black.
    Here is my photo stright from the scanner:
    Here is how it looks after rotating in Preview.
    I tried to assing profiles but it's not hellping at all.
    Color pictures are fine and it all started after Maverick instalation.
    Thanks for any help.

    When shooting raw, most camera settings are ignored/cannot be read by Lightroom. The notable exception is white balance. And these settings are only metadata anyway, not an integral part of the file itself.
    It's different with a jpeg, which is processed in-camera and then these settings are baked irreversibly into the file.
    As long as the camera has a Bayer filter array in front of the sensor, the raw file contains color information, which is then processed by the raw converter. If the file is flagged as B/W, the camera manufacturer's proprietary raw converter automatically turns it into B/W. But Lightroom can't read that flag.
    In any case you're better off doing the B/W conversion in Lightroom, instead of accepting the camera version, because you can adjust brightness for individual colors. So that gives you much more control:
    A few genuine black and white cameras exist, like the Leica Monochrom. These cameras lack the Bayer filter array.

  • Leopard is not letting me print in Black and White!!!!

    I was able to do it before with the Quartz Filter option.... but that has been removed in leopard..... What can I do??.... HELP!!!!

    The Quartz Filter entry under ColorSync is not present in OS X 10.5
    (Leopard) -- at least at the present time. The Quartz Filter for Black and
    White still exists, however. It's just not tied into the print window.
    The easiest way I have found to use the Black and White option is as
    follows:
    1. Go to print the document. Use the item "Open PDF in Preview" item
    under the PDF Services drop down menu at the bottom left of the print
    window.
    2. When the document appears in Preview, choose Save As… from the File
    menu.
    3. You can either change the name or use the Replace option when
    prompted. Select the output format as PDF and use the Quartz Filter to
    select "Black and White".
    4. Make sure you have the name and location to save the document as you
    want it. Click the Save button.
    The resulting document will be in Black and White and you can print it
    normally.
    You can also provide feedback to Apple and request that the Quartz filters be implemented in the print window again. http://apple.com/feedback/macosx.html
    Matt

Maybe you are looking for

  • Size of the select value window in the portal for a query

    Hi, When I try to restrict the key figures structure in the portal (to select some key figures and hide others), the description of some key figures is truncated. It happens when the description of the key figure has been defined on several lines in

  • The program closes without warning, while I am working in the program

    I just purchased the Acrobat DC software... The program closes without warning, while I am working in the program

  • Using a licence on replacement laptop

    Adobe have conveniently made phone and chat help unavailable at the moment so I can't get help with this problem... I purchased Elements 13 and used the to computer licence to install it on 2 computers. I have had  one of those computers; a Macbook A

  • IPhoto is not update events and photos ( make key photo)

    hi i erase all my computer data, and make a backup with time machine. and i restore all data again .. all works perfect and great. but iPhoto is not working good. here is a picture of my iphoto how looks like ... iPhoto is not updating all my events

  • Beginner basics to deploy a JavaCard applet

    I've been struggling with the JavaCard 2.2 Dev Kit for a while now. I've read tons of material on writing JavaCard applets and OpenCard host apps, and feel I have a firm grasp of that. My problem now is in how to get the applet java file into an emul