Fill image with color

Hello, please help me to find the answer.I have an image (doesn't matter
what format it is. I can use most suitable, even export from Photoshop can be used).
I would like to fill it with color. Is it possible to do it using JavaFX?
Here is an example. PNG image (please, see the link ) with transparent alpha and black color. Is it
possible to replace black color programmatically?
As I've read there is some plugin for Photoshop that allows to export work in JavaFX readable format, is it possible to realize my idea with the help of this Photoshop plugin?
Edited by: Holod on 05.10.2009 9:37
Edited by: Holod on 05.10.2009 9:37

I've tried it with
1. bind instruction:
    paint: Color.LIGHTBLUE
    width: bind image.width
    height: bind image.height2. without bind:
    paint: Color.LIGHTBLUE
    width: image.width
    height: image.height3. without bind and with additional pixels:
    paint: Color.LIGHTBLUE
    width: image.width+100
    height: image.height+100
+100 is random number. I should print image.width and image.height before declaring effect blend.
File is situated in the same package with fx file. I think it doesn't take too much time to load img.
I know dimensions of image, but I would like to work with abstract image, it's not good to hardcode dimensions or ask user about image dimensions. User is not a professional and he doesn't have to know such dull things :)
Edited by: Holod on 06.10.2009 9:39
Edited by: Holod on 06.10.2009 9:40

Similar Messages

  • Is it possible to fill images with color in Keynote???

    I have a map of europe I made in Photoshop showing different empires before World War I. Is it possible to apply a colorize effect to my layers when I bring them into Keynote.
    I would prefer to decide what colors the layers should be in Keynote rather than in Photoshop.
    Also can Keynote import a multi-layered photoshop file?
    Thanks very much in advance.
    Message was edited by: Nicholas Natteau1

    You could also try using a map that has the countries included as vectors. Here's a PowerPoint file I found.
    http://www.presentationmagazine.com/world-maps-vector-editable-507.htm
    Then, you can set the fill just as you're thinking about. You could even make the fill an image this way.

  • How to make a one-color fill images with masks in documents from our multiple layers ?

    Hello everyone!
    I`m to open PSD document with same layers. I need to:
    1. Save the jpg file (preview) in a certain place
    2. All layers with masks to make one-color fill instead of images with masks.
    Thanks
    This is way ?
    var theLayers = collectLayers(app.activeDocument, []);
    alert (theLayers.join("\n"));
    function collectLayers (theParent, allLayers) {//---------------------------------------------------
    if (!allLayers) {var allLayers = new Array}
       else {};
       for (var m = theParent.layers.length - 1; m >= 0;m--) {
          var theLayer = theParent.layers[m];
          if (theLayer.typename == "ArtLayer") {
               var bar = new Array;
               bar = theLayer.bounds
               l0= Math.abs(this.app.activeDocument.width - theLayer.bounds[2] - theLayer.bounds[0]);
               l1= Math.abs(this.app.activeDocument.height -theLayer.bounds[3] - theLayer.bounds[1]);
                if((l0+l1)>0) { // layer mask is set
                    // delete this layer
                    //create new layer
                    //create new mask from array bar
                    //fill selection
                allLayers.push(theLayer);
       return allLayers

    I may not quite follow.
    Would you mind posting an example (a screenshot with the Layers Panel visible for example) and an overview of the resulting images you want to produce?

  • B&W image with color profile true B&W?

    I have a 10mb B&W visual saved as RGB. It's 10mb which is too large.
    I changed it to grayscale and it goes down to 3mb. Still too large.
    How else do I change a B&W image with RGB color profile to plain B&W? Or is 3 mb the lowest I'm going to get?
    OR how do I just make the file smaller? Changed Resolution from 300 to 72 but stayed at 3 mb.
    Thank you.
    Dropbox - loading page portrait@2x~ipad.png
    Dropbox - b&w.jpg

    File size is dominated by pixel data.  If you save in a layered file format the file will contain pixels for many layers.  Different files formats support different things and compression.  10MB and 3MB would be very large image if the file format is Jpeg. For Jpeg only supports 8 Bit color mode and does not support layers and transparency.
    I downloaded your 9+ MB png file and found it hard to believe the file was that large when I opened in Photoshop.  So I did a Save As and save it xxxxxx.png it size turned out to be 131KB

  • Fill layer with color

    pse13  I am trying to fill layer.  The layer has a small rectangle on it and nothing else.  When I fill layer, it fills the entire canvas, not just the rectangle!  This used to work!

    Go to File>new>blank file. Enter w, h, and resolution, & background color. This will be the canvas.
    Set up the Rectangular marquee tool to fixed size, enter w & h dimensions for the rectangle
    Use the Paint-bucket tool to fill the rectangle with color of choice as determined by the foreground color chip.

  • Filling paths with color in Photoshop CS4

    I am working in Photoshop CS4...have been for years.  All of a sudden, when I try to fill a closed path with a color, it fills the entire artboard with color, except not inside the path.  I have not selected "inverse" or anything....and it has never done this before....I can't figure out why it has started doing this, and I can't get it to stop.  Most of the paths in my file, I have made in Illustrator and  then pasted into Photoshop...they work normally....it is just the ones I actually draw in photoshop that are doing this....one thing I have noticed is that in the paths palette, the paths I pasted in from Illustrator have a grey background.....while the paths I actually drew in photoshop have a white background.....any ideas, anybody????

    Quote from the Help:
    Choose one of the following in the options bar:
    Add To Shape Area
    Adds the new area to the existing shapes or path.
    Subtract From Shape Area
    Removes the overlapping area from the existing shapes or path.
    Intersect Shape Areas
    Restricts the area to the intersection of the new area and the existing shapes or path.
    Exclude Overlapping Shape Areas
    Excludes the overlap area in the consolidated new and existing areas.

  • Keyboard shortcut for filling layer with color are opposite on my PS CS6 OSX install, Help?

    Hello all,
    I'm a bit of a noob, and following a tutorial….and found something strange and wonder if you might help me figure what's happening.
    I have Photoshop Extended CS6 on a macbook pro (late 2011).
    I'm running OSX v 10.7.5
    I'm following along and the instructor added a new layer. I did this.
    He then filled the layer with white which is his background color (he has black foreground, white background). I have the same fore/background colors.
    Now, I thought on mac that to fill with foreground color you hit Apple+Delete  and to fill with background you hit Option+Delete
    It is doing the exact OPPOSITE for me. I hit Apple+Delete (or even backspace)  and it fills with my background color which is white
    If I hit Option+Delete (or backspace) it fills with my foreground color.
    I've tried looking in the Edit Keyboard shortcuts area…but I don't see these settings anywhere.
    I do have an external keyboard  hooked to my mac. It is a 3rd party one, but seems to work in ever other way normally.
    Keyboard here is:  http://pckeyboard.com/page/UKBD/UB40P4A
    Any suggestions why my keyboard shortcut for filling a layer with color might be reversed?
    Thanks in advance,
    CC

    eartho wrote:
    option-delete is, and always has been, fill with foreground.
    a 1 second google search would have informed you of this.
    Thanks for the reply.
    I did do a Google and I got this:
    http://blog.coghillcartooning.com/84/tip-keyboard-shortcut-to-fill-a-photoshop-layer-or-se lection-with-the-background-or-foreground-color/
    And from that I got the option-delete was background, and apple-delete was foreground.
    Hence my confusion...
    Thanks for the reply, I guess I should check 2-3 sites each time I google for keyboard shortcuts for PS.
    CC

  • I have a question about the calendar on the ipad2. I have multiple calendars in different colors. Some of the events are filled in with color. Others are just listed with a colored dot in front of the event. Any ideas why events ar showing up differently?

    I have an ipad2 and my question is about the calendar. I set up multiple calendars with different colors. Some of the events show up in filled color. Others only show with a colored dot in front of the event. I can't figure out why some show up one way and others show up differently? Any thoughts?

    On mine the ones that show on a coloured background are all-day events, the ones with dots and just timed events.

  • Form filled out with colors, but when opened in adobe reader they are black

    I have filled out a form with custom colors used in the accesability settings, but when I save the document and open it adobe reader they filled in fonts are black.
    Is there a way to maintain the accesability colours when printing and opening in adobe reader ?

    Accessibility settings are a personal preference. They are set by each
    user (or, if you have Reader and Acrobat, in each one). Above all,
    they are very much NOT saved in a document, because each user needs to
    be able to set their own.
    Aandi Inston

  • Export Simplified Image, with color markers

    Hi,
    I have a few graphs that i'd like in a report, they need to look neat and will get resized along the way. So i need to export them as vector based graphics (.eps or .emf), i have been using Export Simplified Image (Object Shortcut Menu -> Data Operations ->Export Simplified Image). For most plots this has worked fine.
    Problem comes when i make plot with just markers no lines, when i do the export the marker points are always black. I would like to show the differences between some data sets using colour not just marker shape. When i do the same plot but with lines and markers, then both the lines and markers come out in color. Exporting to .eps and and .emf has identical results.
    An example is attached, with the two plots (with lines and without). I am using LabView 8.0 on WinXP could it be a version thing? Anyone willing to test on other versions?
    Thanks
    Tim (LabRat1)
    Attachments:
    ExportTest.vi ‏126 KB

    Hi Topher,
    How are you doing this?  Are you going to right-click>>Export Simplified Image.  I have done this with the code attached on the forum above and this works fine for me using 8.6.1f1.  You could try installing the patch for 8.6.1 if you haven't already to ensure we are on the same version.  This is available at  http://joule.ni.com/nidu/cds/view/p/lang/en/id/1276 although it should not fix anything to do with this.  Does this also not work by using the property node as described in the KB at http://digital.ni.com/public.nsf/allkb/5AE4ADCBB65A6D8F86256FBF007A1AC1?OpenDocument
    Regards,
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • How to isolate part of my workspace and use paint bucket to fill it with color?

    Here is my situation:  I want to draw a vertical line on the left-hand side of my workspace about an inch away (to the right) from the left edge.   Then I want to fill up that inch-wide column with a particular color.  The end result being that I will have an inch-wide bar of color running vertically down the left side of my project.
    I know this is probably really easy to do but it's been a long time since I had a course in Photoshop.  
    I use PSE 6.  Thanks!

    Something like this:
    1. Use the Rectangular Marquee Tool to draw the rectangular selection
    2. Select the Paint Bucket Tool
        Add a new blank layer
        (so it's easy to change later)
        Click on the foreground color chip in the toolbox and set your color for the fill
        Click inside the selection with the paint bucket tool
        Select>Deselect
    You can use the rulers to see how far an inch is in your document
    (View>Rulers)

  • IBook Screen Has fuzzy white image with colored lines on it?

    Hi, I have an iBook G4 1.33 Ghz. I was using it the other day, then all of a sudden the image faded away and the screen turned white with little random blotches of colored lines all over it. It does this every time I start it up now. I dont think it is the graphics chip issue, because when I hook it to an external monitor or TV, the computer runs fine and does not crash. I get a perfect image on the external monitor, just no correct image on the iBooks display itself. I've tryed resetting PRAM and PMU to no luck.
    Any Ideas?
    thanks.

    HI Allen,
    *"little random blotches of colored lines all over it. It does this every time I start it up now."*
    According to this thread, it could be the logic board. http://macosx.com/tech-support/mac/ibook-g4-screen-turns-from-black-to-white-slo wly-on-starup/18233.html But it can't hurt to try maintenance anyway because clearly something is wrong.
    Check the boot disk for errors. Restart your Mac while holding down the C key, pressing the power button and inserting your install disk all at the same time. An Installer window will open, but do not proceed with any installations. Instead, from the Menu Bar, select Utilities > Disk Utility. In the Disk Utility window click First Aid, and then click Verify. If Disk Utility reports errors, click Repair. When Disk Utility is finished, from the Menu Bar, select Utilities/Startup Disk. Select MacintoshHD 10.x.x and click Restart.
    To check your hard disk’s S.M.A.R.T. status: Open Disk Utility, in the Utilities folder in the Applications folder.Select the disk in the list at the left, and look at the bottom of the window for a field named “S.M.A.R.T. Status.”
    Check available disk space. Right or control click the MacintoshHD icon on your Desktop, then click: Get Info. In the Get Info window, click the discovery triangle so it's facing down. You will see; Capacity and Available Make sure you have 10% available disk space, 15% is better. Insufficient available space, can cause performance issues, system corruption, and possible loss of data.
    Another suggestion is to boot in Safe Mode. http://support.apple.com/kb/HT1455
    Carolyn

  • Random error fills screen with colored pixels and then reboots, OSX 10.6.8 2010 iMac intel Core2Duo, help?

    Hi all,
    random error I'm guessing something to do with video drivers that replaces the screen with a bunch of colored pixels.
    I'm not sure if the computer is still responding and it's just a screen issue, but I do see a little square move when I move the mouse.
    I'm uploading a picture of the error.
    I've updated everything to the latest version of Leopard.
    2010 intel iMac
    OSX 10.6.7
    Any ideas?

    I've updated everything to the latest version of Leopard.
    2010 intel iMac
    OSX 10.6.7
    v10.6.7 is Snow Leopard not Leopard and there is a v10.6.8 update available.
    Click your Apple menu  /  Software Update
    Restart your Mac after the update is installed.
    Same problem exists then run the Using Apple Hardware Test
    Might be a bad graphics card.

  • Can I scan  line art (B&W drawings) into Elements and then fill them with color?

    In Photoshop CS I could do this. Can this be done with Elements? All I see under "IMPORT" is importing from a camera. Can I import something I have scanned as well?

    I see you’re in Tiger and I’m running Leopard. If I remember correctly, in Tiger it’s something like Print > PDF > Quartz Filter > Gray Tone. In Leopard, it”s
    Print > PDF > Open PDF in Preview > Save As > Quartz Filter > Gray Tone.
    If Quartz Filter doesn’t directly follow PDF there may be a menu that says Filter and then Quartz Filter. My memory, to quote Henric, is “porous.”
    Walt

  • Image with fill color

    Hi all,
    Is there any script which can find images with fill color applied?
    Please pass the JS code if anybody has.
    Thanks in advance.
    Tan

    Thank you all.
    It is difficult to me. Could you please provide me simple JS code.
    Thanks

Maybe you are looking for

  • Using Forte 3.0 to deploy web app to iPlanet Web Server

    Is anyone familiar with using Forte 3.0 to develop/deploy a web application to an iPlanet Server? All I need is a simple walkthrough to create/deploy a "Hello World" app (it could be just a JSP) or a link to some document that covers this topic. Than

  • IPod touch not recognised by itunes. have tried fix suggested in FAQs

    Hi Guys, I have a 32gb iPod touch, which recently had been running a bit slowly. As a solution to this i updated with the newest sowftware, and cleared all my apps. Still slow, so i decided to do a system reset from the settings function. This was fi

  • Font Book Problem - Cannot see validated fonts in QuarkXpress

    We are trying to view the fonts that we have loaded into the font book from QuarkXpress. We can see the fonts in Adobe Design Premium apps (Photoshop, Illistrator, etc.) but not in Quark 7.3.1. The fonts validate fine in the book. We have tried remov

  • OS7 updated phone not syncing with iMac

    My iPhone 4S is no longer syncing with my imac after upgrading to OS7. When pluging in phone I get a iTunes error message saying that iPhone iTunes needs to be updated to 11.1. My phone tells my that all of my software is up to date...as it should be

  • OS X Tiger 10.4

    I have a macbook pro 17in and I also have a macbook pro 15in. I lost my install disk for my 17in macbook pro. I attempted to load my install disk that came with my 15in and it stated that it was not supported. Is there a work around for this or not.