Make an image darker

Hi all !
I was looking for making a transparent background using a frame.
I have a screen resolution of 1600 by 600, but my application uses
the left part of the screen (800 x 600).
Now that I have captured the screen, I want to make it darker,
so the user can distinguish reel icons from the application surface.
I've (almost) never worked using images.
Question : How can I display a darker image than the one I've captured ?
Can somebody help me for my quest ?

// This parameter changes how much you darken the image
float brightnessRatio = 0.8f;
// Get an image producer for the image
ImageProducer ip = img.getSource();
// Construct a suitable filter
RGBImageFilter filter = new RGBImageFilter()
        boolean canFilterIndexColorModel = false;
        public int filterRGB(int x, int y, int rgb)
            // Extract the individual fields
            int red = ((rgb & 0x00ff0000) >> 16);
            int green = ((rgb & 0x0000ff00) >> 8);
            int blue = (rgb & 0x000000ff);
            // Get the HSB equivalent values
            float[] hsb = Color.RGBtoHSB(red, green, blue, null);
            // Use the brightness to code up a grey
            int return_value = Color.HSBtoRGB(hsb[0],
                                              hsb[1],
                                              hsb[2] * brightnessRatio);
            return return_value;
// Create an image producer for the filtered image
ImageProducer filt_ip = new FilteredImageSource(ip,
                                                filter);
// Produce the output image
out_img = getToolkit().createImage(filt_ip);

Similar Messages

  • Why are my images darker on a mobile device?

    Ok so here's a weird question. When I edit my images in PSE12, they look flawless on my computer. They even still look great on Facebook on my computer. When I view my images on my Android phone, even on Facebook, the images are darker, the colors are what I can best describe as violent. My customers say that the images are still great on disc. What my question is, how can I make the images look better on my Android phone and would my customers see the same awful colors on their devices or would they look like they do on a computer? I've tried resizing the images, readjusting, converting to sRGB, you name it. HELP PLEASE!!! Lol. I just want a fair and true representation of my work on mobile devices as they are on PC. Forgot to add that even when I just transfer the images via USB to my device, they're still dark.

    I don't know if this applies, but:
    Dark-tinted or dimmed images | 8sms
    You may want to ask here:
    http://androidforums.com/

  • Make an image like this

    Hey guys how do I make an image like this:
    Note how it is dark on one side and then lightens on the other side. I have Fireworks 8.

    OK I did that but the gradient is going sideways, not up and down:
    How do I fix this?

  • How Do You Make an Image Flow with the Text?

    Hello all,
    I am using CS4 InDesign on Windows Vista. I am fairly new to Indesign but try to do my research and homework well before asking what I hope is not a really dumb question.
    I am writing a book of approx. 350 pages that is an illustrated encyclopedia of 156 plants and their oils.
    Each 2 page spread is a single entry for a plant. The graphics frames on each spread are identical in size, position and styles for a consistent look throughout the document.As you can see (hopefully) each page is a single column. See screenshot below
    In order to overcome my first problem of positioning and sizing the graphics frames uniformly, I created the master pages with the graphics placeholders sized, positioned and formatted to my liking. This worked wonderfully and I placed all of my 300+ graphics by simply over riding each frame.
    Then in my editing I decided to add another 2 page spread somewhere in the middle of this fairly large document.
    What a NIGHTMARE. The text predictably shifted but now ALL of my graphics were no longer associated with the corresponding text! Arrrgghhh.I had not anticipated this behavior (used MS Word for 15 years) or I would have done something different.
    3 hours later I finished re -"placing" the images associated with the correct text.
    I researched the help file and found out about the neccessity of anchoring graphics to text. I have read through the threads in this forum, followed links to "indesignsecrets.com/make-an-image-flow-with-the-text" and " Working with anchored objects by Anne Marie Concepcion"
    My concerns are this.
    An inline graphic places the graphic back onto your text layer for some reason ( Previously my graphics each had their own layer)
    Not wanting to start (again) from scratch with my graphics I converted them to inline/custom anchored objects.
    But to select then cut then paste every pre existing graphic to anchor it inline seems to be cumbersome and counter intuitive although the top smaller graphic did position well and the text seemed to wrap ok.
    When I placed the larger bottom graphic on the left facing page using custom positioning I was not able to get the text to wrap at all.( The in line anchoring did not seem to allow for positioning on anything but the 'Y' axis).
    It seems that there would be a simpler way to place text and graphics where you want them and have them associate and flow together (or not) when you want them to and have text wrap easily around an anchored object without keyboard gymnastics. It would seem that the concept of a certain graphic being associated or linked with certain text would not be an unusual concept in desktop publishing.
    Am I missing something?
    Can you place an anchored graphics frame on the master page with your desired options?
    How would this be done if possible?
    Is there any other way (i.e grouping) to keep graphics associated with the desired text so that it flows together if extra pages are added?
    Is the fact that my graphics frames are on my master pages responsible for my text wrap difficulty? (I have text wrap enabled on my master pages)
    Are there any settings, redundant or otherwise, I need to be aware of?
    Thank you in advance for any suggestions or directions
    L.N.

    Hello Again,
    Thank You Bob but I am still a little fuzzy on this. I have already created object styles for the graphics frames. For instance the small graphic underneath the heading (Its a drop of oil) has an object style applied. Now I checked and it has the anchored object options checked in the style dialog box. When I reapply the style to the next similar graphics nothing happens. It is still not anchored. Do I need to create a new style based on "nothing" add my effects plus the anchoring options? Basically start over. If thats what I need to do thats OK. As to your instruction that object styles could accomodate this anchoring thing...thats what I thought too but somehow I can't get it to work. See object style dialog box screenshot below:
    For the larger graphic on the bottom of the left facing page. I still cannot get any text to wrap. In the screenshot example the text describing this particular plant doesn't go to the bottom of the page so the wrapping issue on this page is moot. However I have some entries where the body of the description is more involved and does go to the bottom of the page and the text WOULD need to wrap around the plant (larger ) graphic.
    Hi there Harb, Yes I found out early on that object styles can't apply size (that would be on my wish list for sure) That is why I found that creating my graphics frames on the master page with the correct size, effects and positioning tickled me so much. Can you believe I originally went through and MANUALLY resized and repositioned each and every 300+ graphics in this book but it still wasn't right. I'm nothing if not persistent. (Now if I could just get my grown sons to pick up their socks!)
    Anyway the master page graphics frames idea would be perfect if I could get the images to anchor in their respective spots on the master page as well.
    For your second suggestion. I am not clear about why I would need to break the threads of each spread so that each spread is a seperate article. Is the threading issue the thing that is causing my text to move on leaving their associated graphics behind? If so how do I go about doing this?
    So to recap:
    1. I need to know if I can modify my object style or recreate from scratch with the anchoring option (as I said it didn't work)
    2. Can't get text to wrap around the Custom anchored graphic at bottom of page at all
    3. Im not clear on the breaking the threading on the spreads
    I am willing to go back through and start from scratch (new master pages, styles etc ) if neccesary. This book is the culmination of 7 years of research and artwork.Basically the project is DONE. Now if I can just format it correctly.
    I can't thank you both enough for your time, suggestions, expertise and patience.
    Thanks again
    LN

  • Can no longer make system image after Win 8.1 upgrade (error 0x80780119)

    I've recently upgraded to 8.1 and am now trying to make system image.
    Unfortunately, it's failing with error 80780119.
    [Image of failed backup|http://www.sawyourad.com/toshiba/failed.png]
    I've had this happen before on another computer system, and resizing the recovery partition seems to fix it, and is what's suggested on the web.
    However, I can't seem to do that on this machine, diskmgmt.msc doesn't seem to show any disk space used, and worse, many of the partitions seem to be duplicated
    [image of disk partitions|http://www.sawyourad.com/toshiba/diskmgmt.png]
    You'll notice that none of the recovery partitions appear to have any space used.
    I'm at a loss as to what to do next.
    The 8.1 update has pretty much rendered my machine unsafe to use, as I can't back it up any more.
    I hope I don't need to add Toshiba to my don't buy list.
    Anthony Wieser
    Wieser Software Ltd
    +Message was edited: link has been removed - not allowed+

    Hi
    >I hope I don't need to add Toshiba to my don't buy list.
    This is not a option buddy. Why? Because it seems that this is a common Windows issue as many people asked for a solution in the Microsoft forums and community.
    [Backup fails Error code 0x81000019|http://social.technet.microsoft.com/Forums/windows/en-US/25deba76-464b-4a9d-9b32-a283bb6a88ce/windows-7-rc-backup-fails-errorcode-0x81000019?forum=w7itproperf]
    Someone solved this by de-selecting the create driver image checkbox available when you choose the contents of the backup.
    But it looks like his error come when hidden System Reserved partition created by Windows system does not have enough space to store a shadow copy.
    Please check the freespace on this volume.
    Follow the following steps:
    1. Start -> Computer -> Right click -> Manage
    2. Select Storage -> Disk management.
    3. Verify that you have a System Reserved partition of around 100 MB size or more
    4. If yes, right click on this volume and select Properties.
    5. View used and free space.
    Windows backup requires around 40 MB of free space on this partition to backup successfully.
    So if the free space is less than 40 GB, backup does not get enough free space.
    As a workaround try the following solution:
    Since the default System reserved partition cannot be extended, creating a new system volume is the workaround. Here are the steps to move the system volume to any other volume:
    1. Choose where you want to have your system volume.
    Few things you need to keep in mind:
    a. System volume can only be created on a primary partition of MBR disk.
    b. If system volume & boot volume are together, then BitLocker feature cannot be used to encrypt volumes on your machine.
    2. Suggest creating a new volume (say F:) on the same disk that contains the boot partition of size of about 490 MB (be careful to keep it less than 500 MB).
    3. Assuming Windows is installed on C: on your machine. From an elevated command-prompt run: bcdboot.exe /s C:\Windows /s F:.
    4. From elevated command-prompt run: DISKPART
    5. From the disk part command-prompt:
    DISKPART> select volume F
    DISKPART> active
    Now you can reboot your machine and F: will become the system volume.
    You can undo this by repeating the same steps using the original system volume (you have to assign drive-letter to it) to revert to your previous configuration.

  • Best way to make an image backup of a Boot Camp partition?

    I want to upgrade my Windows XP partition to Windows 7. Before I do, though, I want to make a complete image backup of the partition, so if anything gets terribly screwed up, I can restore from the image and be right back where I started.
    How can I make an image backup of my Boot Camp partition, and then restore it? Do I use Mac OS X Disk Utility for this?

    I use Paragon Hard Disk Mgr 2011 Suite ($49) to clone to a new drive, backup, and Paragon has a number of products aimed at support for Boot Camp.
    http://www.paragon-software.com/home/hdm-personal/
    http://www.betanews.com/article/Paragon-Hard-Disk-Manager-2011-Suite/1295234930
    New product with special, Paragon Drive Copy
    http://www.paragon-software.com/home/dc-professional/
    http://blog.paragon-software.com/?p=1160
    Migrate XP to Windows 7
    http://blog.paragon-software.com/?p=85

  • I/O Error while trying to make an image of the bootcamp partition

    Hei all.
    I want to backup my Win-partition on my MBP.
    But every time I try to make an image of that via Disk Utility, it gives me an i/o-error. I tried to do it logged in, while booted via the restore DVD, in Firewire-Target-Disk mode, on the internal HD and an external one, repaired the Volume, I can't think of anything else and don't know what I do wrong - the must be a way, doesn't it?
    I'd be happy if anyone could help me, hope I've posted in the correct subforum,
    greets,
    Jojo

    Well ok, think i don't need it anymore. thx anyways...

  • How to make an image of a folder.

    I want to make back up my applications folder cause I have alot of stuff that if I were to lose it I wouldn't even know what to redownload or get from where ever else, when I try to transfer the folder to my external hd it takes forever because it wants to scan everything in the package contents of every app. so I want to make an image so I can transfer real quick. and I can just restore everything a little easier. is there anything I can use to do this that came in OS X or any freeware I could get?

    It would actually be easier to make an archive of the folder. Just control-click the folder and select "Creat Archive of '<name of folder>'" But, if you still want to make an image, go do Disk Utility, and then click "New Image" at the top of the window. Next, you'll have to name the image, and select the size (everything other opttion can stay as it is). After you create the image, it will open and you'll have to drag your folders contents (or the folder) into the open image, then eject it. After that, your image is finished.
    Zeb

  • How do you make an Image from a Graphics?

    1) Is it possible to make an Image from a graphics?
    I've returned the Graphics of an image in the method of one class so that I can work with it in another class. I was looking for a setGraphics in the Image class but there isn't one. Nor is there a graphics.createImage(). What I'd really like to do is get the background image, draw on it in a separate class, then return it to the original class (for buffering purposes).
    2) is there any way to make a blank Image of given dimensions (without actually making a .gif of a blank screen)? I want to draw on the background even if it is blank, but I can't get the Graphics of a null Image.
    thanks in advance.. :-) jen

    thanks for all your help guys!
    i looked at those websites.
    The reason why the site's buffered images work is becuase they are using the paint method in a single class. (i.e. they are not calling the graphics from someplace else). If you call a Graphics (using getGraphics and the like) from someplace else, you don't get a reference or pointer; you get a COPY. The copy will helpfully record your instructions. But the original graphics doesn't get the instructions. That's my problem. My graphics instructions are not getting sent to the originating Graphics, so drawRect never gets executed.
    Another problem is that I often have no background picture in my container, and hence, I have a null pointer when I try to draw stuff on the returned Graphics.
    So what I want to do is create an image in the subclass of the rectangles, lines, whatever, and send it to my handy little setBackground(Image im) method in my superclass. And whenever the background image is null, create a white image to draw on.
    I am calling the graphics from the background of a custom lightweight container. I would REALLY REALLY not like to mess with my container code... it took me a long time to get it working.
    I also don't want to override paint. That would make all the buffering work I did obsolete. :-(

  • DVD burned on one G4 will not open up on another. How to make an image?

    Hello,
    This is a bit of a desperate problem, I have a dvd that was created of a 1.4 hour program and burned using iDVD3.0.1 on a G4 500 Mhz machine. Once the dvd is created I am able to play it on that computer using dvd player. I am running Tiger on that machine.
    Once I take that dvd over to my G4 1GHz machine also running tiger, the machine will simply not accept the dvd and keep ejecting the dvd; dvd player does not even open up in order for me to look at the video.
    The main purpose of me having to look at the dvd on the G4 1Ghz machine is to copy the dvd. Can you also briefly describe how to make a copy of a video dvd created using iDVD? I believe I have to make an image first. I cannot remember how to do that, please help. Once the image is made how do I copy that image onto a fresh dvd?
    Thanks,
    Vidur

    Hi Vidor
    first:
    I use DVD-R disks
    And Verbatim brand
    second
    iDVD 3.xx doesn't create Disk Images. Neither does iDVD 4
    (if iDVD prior HD/5 You have to add a hack to make this possibly
    named HPfurz and install it)
    Works on iDVD 4 - for iDVD 3 I don't know.
    Test this with Apple DVD-player - OK then burn it with iDVD
    or Toast if You have and don’t want to re-code the movie.
    third
    To make a DVD copy You need
    - a NON copy protected DVD
    - a program that can make it into a Disk Image eg. Roxio Toast™ (costs)
    - a new blanc DVD-R disk
    If Apple Disk Util tool - can make a disk image is out of my knowledg.
    Yours Bengt W

  • Sorry I'm new to Final Cut Express. How do you make an image (jpeg file for example) move across the screen slowly as I've seen in many films.

    Sorry I'm new to Final Cut Express. How do you make an image (jpeg file for example) move across the screen slowly as I've seen in many films.

    Neil from bristol wrote:
    … How do you make an image … move across the screen …
    by setting KEYFRAMES
    (read, what FC/e's built-in Help-feature tells about it)
    resize and set pic to start position
    set keyframe
    move playhead in timeline to desired length
    set pic to end position
    set keyframe …

  • I would like to be able to size images by kilobytes instead of pixels--is this possible?  I use I-Contact which requires a maximum of 70kb per image.  For best quality I want to make the images as close to 70 as possible.  Currently I choose a size of 300

    I would like to be able to size images by kilobytes instead of pixels--is this possible?  I use I-Contact which requires a maximum of 70kb per image.  For best quality I want to make the images as close to 70 as possible.  Currently I choose a size of 300 pixels on the shortest side but sometimes this gives me an image of slightly greater than 70kb and sometimes the image is just 30-40kb.  Is there a way to be more precise in reaching but not exceeding 70 kb?

    That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
    You can opnly resize using the available options and file size is not one of them
    LN

  • Hiya, i would like to make an  image where the subject looks ghostly- half transparent etc. How can i do this on PSE 12?

    Hiya, i would like to make an  image where the subject looks ghostly- half transparent etc. How can i do this on PSE 12?...........also, perhaps to create a " then and now" type of picture, a modern view with a view of the past superimposed in.
    Thanks.

    Hi libbydibby,
    Please refer to the given link:- https://forums.adobe.com/message/4745994
    Let me know if further assistance requires.
    Sarika

  • After importing an image from cs5 back into lightroom, lightroom is making the image darker

    Lightroom is making my images darker after i edit them in photoshop cs5 and I dont know why. When i open the image back into photoshop it looks fine. Even when i save it as a jpeg lightroom is making the image darker. When i imported the raw image into lightroom before i edited into photoshop it looked fine. Is there a way to fix lightroom?

    See screen shot:
    Click on the two small triangles and under <Lightroom General Presets> select <Zeroed>. Sorry, it seems that the option <None> is not available anymore in Lr 4.3. But <Zeroed> has the same effect.
    Alternatively, in the Develop Module, bottom right, just above the film strip click on <Reset>.  See screen shot:

  • Can not make still image using share in Final Cut Pro x

    This is what I get when trying to make a still image under share.
    (com.apple.Compressor.CompressorKit.ErrorDomain error -1.)
    This is a new error message. Was able to make still image before.
    Thanks for anny help in solving this problem.
    Russ Andris

    Hi again Russ,
    just posted this over at Compressor because of the Compressor related error message I was getting wheN i tried to 'Share' a sill image from video.
    Thanks for the tip Russ, I did not know that one.  I had tried using cmd+shift+3 with Snapz Pro to screen capture which intially worked but then did not.  I tried ditching the prefs and the apps with Digital Rebellion but had no luck in saving a still.  But, I installed the new FCPX update and on first try I was able to export a stll frame, on one laptop anyway.  BTW, must say, I am not keen on the 'Share'  notion in an app like FCPX.  What I considering I am doing when trying to obtain a stil image is exporting or saving not sharing.  I hope Apple might considered amending such terminology, share seems appropriate for iTunes or iWeb but not FCPX.
    One more thing, a truly odd one.  Files marled as .mov from my Fujifilm X100 will not import into FCPX!!
    That is truly amazing - Quicktime files not recognised by an Apple aplication!!  Our trials are not over.
    D

Maybe you are looking for