Creating gray image while remaining  color in specific part

Hi guys
Well, as you might suggest from the title, i would like to convert a photo to gray scale but at the same time to remain a color in a specific part of it, let's say a flower. How can i do this?
Thanks!!!

You must make a selection around the item tat is to remain coloured. Look up selections in Help. It is impossible to say which method is best without seeing the picture. You could always post it on Pixentral.com and copy the code into your reply here.

Similar Messages

  • Rich black gray images

    I want to create a rich black, CMYK gray image. The colors must blend CMYK to make a nice gray image. It would be nice to apply GCR to remove some of the CMY and reduce the TAC. So far, I am able to make this happen. However, as a result of the GCR, the highlight areas in the photo are made up of mostly CMY. I would like to have the highlight areas made up of mostly black only. So, I want to use GCR in the mid-tone and shadow areas, but I'd like to use mostly black only in the highlight areas. Any thoughts as to how I can make this happen?

    You are misunderstanding GCR. CMY in the highlights is not the result of GCR, it is the ABSENCE of GCR in those tones.
    GCR is the substitution of blacK for CMY when there are combinations of the color inks in ratios that would simulate neutral gray (generally, equal amounts of C & M, and about 20% of those percentages as Y). The theory being that blacK alone can substitute for the gray that CMY can give. In practice it doesn't quite work out that way, but using black where neutral gray appears in the CMY mix up to about 50 % replacement is a good compromise.
    If you are converting from RGB to CMYK, in Color Settings, set the working CMYK space to Custom CMYK, then use GCR and varying amounts of black generation to force more black replacement up into the light values of the image.
    If your image is CMYK already, you'll have to do a "manual GCR by using Curves. Or, you could convert back to RGB, then control the conversion as above back to CMYK.
    In either case, it's a crap shoot and you'll have to experiment and fine tune with Curves.
    Rich

  • Create Thumbnail Image in KM

    Hello Everybody,
    I can upload images to KM Folders. But I want to create thumbnail image while i am uploading original image. I found one library but i cant call the create function from "com.sapportals.wcm.repository.manager.thumbnail.ResourceImageThumbnailPlugIn" library.
    Does anyone know how can i call this function from webdynpro?
    Kind Regards.
    Rasim

    Hello,
    You are right john. But i am using KM api library from webdynpro. I dont use km upload tool. for that reason it cant create thumbnail automatically. I need one library for creating thumbnails.
    Thanks satish for your link. But i dont understand what should i do with this link. My problem is if i uploaded jpg images, it cant created thumbnails automatically..

  • Is it possible to create a .pdf with BOTH color and grayscale images?

    Hello,
    I am in the final phases of a book project (4 years in the making!) that has both grayscale and color graphics. When I save as a .pdf via the Adobe PDF printer driver and distill, I end up with a .pdf that only has color graphics despite the fact that some images were grayscale to begin with. I'd like the grayscale images to remain graysale in the pdf. Is that possible?
    I am using older software framemaker 6.0 and acrobat & distiller 6.0 and am reluctant to change now, I will upgrade for a second edition, but not now.
    Thanks.

    Create the document in layers with the background on a seperate layer than the text. Export the PDF with"Create Acrobat Layers" selected (it will need to be at least version 1.5).
    Open the PDF in Acrobat, choose the background layer then Options>Properties>Initial State and under "print" choose "Never prints".

  • I need to replace a color on my image with a specific color from another part of the image.  How?!

    I have spent over 2 hours trying to figure out how to replace a color on one part of my image with a specific color shown on another part of the image.  So far I have been able to go to "Replace Color" on my Adobe Photoshop version, but it seems that I can only change the hue and brightness of the color that it currently is.  I need to use a specific color so this does not help me.  Does anyone know how to complete the task I am referring to?
    Also, please keep in mind that I am using Adobe Photoshop 6.0, not a fancy cs version or anything.  So it's pretty old school...
    Any help/feedback is greatly appreciated!  Thank you.

    Hi brookehelene,
    You might consider making a selection the object and using a color fill layer set to the color blend mode instead of replace color.
    I used the same picture as kendallplant did and changed the color on the same flower by sampling the pink color from the flower to the right)
    (click on the screenshots below for larger views)
    1. Select>Color Range
       (i used color range because the dialog is somewhat similar to the replace color dialog, except one is making a selection instead of replacing a color)
       (there are many other ways to make the selection such as the magic wand, so if your more familar with the other selection tools you can use those instead to make your selection)
    2. Use the eyedroppers and fuzziness slider in the color range dialog to make the selection of the object.
       (in the screenshot below the white areas are selected and black areas are not)
       (your selection probably won't be perfect, but you can paint on the layer mask to refine the selection)
    3. After you press the okay in the color range dialog you'll see the selection (marching ants)
       At the bottom of the layers palette press the Create New Fill or Adjustment Layer icon
       to reveal a list and choose Solid Color.
       Then use the eyedropper to sample a color from your image and press ok.
       Change the Blend mode for the color fill layer to Color (top of the layers palette)
    4. As you can see a lot has been selected besides the flower.
        To refine the areas of color, paint on the layer mask with the paintbrush tool.
        Use white to add the color or black to subtract the color
        You can press the D key on the keyboard to get the default colors (black and white) in the toolbox
        and press the X key to switch between the two when painting on the layer mask.
    Even though the above takes longer you can easily change the color or modify the areas that you want to change the color on.
    To change the color you can double click on the color fill icon in the layers panel.
    You can also use other layer blend modes besides color such as hue, so you might try some of the others and see what they do.

  • Getting junk character while creating PDF image for Hebrew language

    Hi,
    I have a issue while creating PDF image for invoice in Hebrew language . I can able to create a PDF image but it' showing junk characters instead of Hebrew characters.
    Please provide your inputs to resolve this issue.
    Thanks,
    Joy.

    Hi ,
    I am also facing similar problem.My system is unicode enabled and i am using the device type I8SWIN and courier font .
    But still i am getting junk characters for Hebrew characters in PDF.
    Can any one suggest me what is the exact device type we have to use for unicode enabled system and also for non unicode enalbled system.
    Is any related to truetype font here .Kindly let me know .
    Thanks for your valuable inputs .
    PRadeep....

  • Trying to add album from iphoto into idvd slideshow.  Not all photos are loading.  Message "creating thumbnail images...(31 remaining).  Been there a long time.  What is wrong?

    trying to add album from iphoto into idvd slideshow.  Not all photos are loading.  Message "creating thumbnail images...(31 remaining).  Been there a long time.  What is wrong?

    Open your iPhoto Library, go to that particular album and verify that you can view the full sized version of each image by double clicking on them.  Report back with the results.
    OT

  • Color Doc w/Gray Gradient Prints as Color/B&W

    Hi,
    I work for a print shop. We have a a client that sends us PDF's of color documents, which was originally created in Microsoft Word. The document I am printing this time has a gray background gradient and color graphics. When I send it to print to our Ikon CPP650, the color graphics print fine, but the gray gradient appears to be printing using only black toner. It thus looks very grainy and ugly. I want ALL graphics to print in color, even the gray gradient.
    Any idea if this is a problem in the PDF file, or my print driver?? I have tried checking all the settings in my print driver and don't see anywhere that I can change this. It has an option to print gray as black instead of CMYK, but that is unchecked. I have tried converting the colors in Acrobat to "US Web Coated (SWOP) v2", and checking "Promote Gray to CMYK Black", but with no change in the print results. Any suggestions?

    What does the Seperation's in Acrobat show....I think it would be tough to force a black tint to cmy....
    Not a great work around, but AA Pro (maybe Standard) will allow you to select a pixel based image, automatically open it in PS , edit, . Change it's color mode from Grayscal to CMYK (or RGB?), close the graphic, it will automatically refresh in Acrobat.
    Tested in AA Pro, 9.4.5, (cept I changed color graphic to gray)
    Tools > Advanced Editing > TouchUp Object Tool

  • Create an image of a JLayeredPane 's content

    hi there,
    we have a problem here: we'd like to create one image out of a JLayeredPane`s content. but the only thing we get is a gray box which size is the size of the JLayeredPane.
    the purpose is: we're developing a graphic tool where you can draw and arrange objects in the JLayeredPane(which is in a JScrollPane). and now we're implementing the print-function which allows to print the graphs over several pages, therefore it is neccessary to have an image(*.jpeg) for our printpreview-window. the preview-window and the printfuntion are nearly implemented and the only problem is that we cant make an image of the JLayerdPane's content.
    maybe you have an idea or codesamples...
    thanks a lot in advance!!
    george

    1. Getting any JComponent to render onto a buffered image isn't a problem -- just call paint, passing it a graphics object backed by that buffered image.
    2. Writing an image to a file isn't a problem: use javax.imageio.ImageIO.
    Some code:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Ex {
        public static void main(String[] args) {
            JFrame f = new JFrame("Ex");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            final JLayeredPane pane = new JLayeredPane();
            Border b = BorderFactory.createEtchedBorder();
            pane.add(createLabel("DEFAULT_LAYER", b, 00, 10), JLayeredPane.DEFAULT_LAYER);
            pane.add(createLabel("PALETTE_LAYER", b, 40, 20), JLayeredPane.PALETTE_LAYER);
            pane.add(createLabel("MODAL_LAYER", b, 80, 30), JLayeredPane.MODAL_LAYER);
            pane.add(createLabel("POPUP_LAYER", b, 120, 40), JLayeredPane.POPUP_LAYER);
            pane.add(createLabel("DRAG_LAYER", b, 160, 50), JLayeredPane.DRAG_LAYER);
            f.getContentPane().add(pane);
            JPanel south = new JPanel();
            JButton btn = new JButton("save");
            btn.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent evt) {
                    save(pane);
            south.add(btn);
            f.getContentPane().add(south, BorderLayout.SOUTH);
            f.setSize(400,300);
            f.show();
        static JLabel createLabel(String text, Border b, int x, int y) {
            JLabel label = new JLabel(text);
            label.setOpaque(true);
            label.setBackground(Color.WHITE);
            label.setBorder(b);
            label.setBounds(x,y, 100,20);
            return label;
        static void save(JComponent comp) {
            int w = comp.getWidth(), h = comp.getHeight();
            BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = image.createGraphics();
            g2.setPaint(Color.MAGENTA);
            g2.fillRect(0,0,w,h);
            comp.paint(g2);
            g2.dispose();
            try {
                ImageIO.write(image, "jpeg", new File("image.jpeg"));
            } catch(IOException e) {
                e.printStackTrace();
    }Why does the saved image have a magenta background? JLayerPane, by default, is non-opaque. You can set it to be opaque and choose its background color, as you like.

  • Gray filter too dark. How to enlight the gray images?

    I�m creating a set of toolbar buttons and I want to acquire that disabled gray effect ...
    in my current code, I load two images for each button - an active one and the gray one...
    recently I heard about the GrayFilter class and I tryied to use it with my implementation..
    the problem is: the GrayFilter generated gray image is too dark..
    how can I modify the gray scale used in the GrayFilter?

    Select --> Color Range or do some magic with Calculations to create a selection based on luminance.
    Mylenium

  • How to create an image button..

    Tools: Adobe Photoshop CS5
    Level of mastery: very novice
    Goal: Creat Button for a website
    Environment: Windows Vista
    Problem:The following images are buttons has already been designd . One image is in the normal status, while the other button is in the rollver status. I want to create an indetical image with same properties such as (size, font type, font size, font color background color) called "Intuitive Healer". I dont know how to mimic the font and the background colors. 
    normal status of a button
    rollover button
    Intuitve Healer ? normal
    Intuitive Healer ?Rollover
    I am curious to learn how to create a button with exact "look and feel" design and write on it Inutive healer
    Make my day

    the type  looks like Times New Roman Font.  If you just follow the tutorial listed below, it lays out nicely. you would just want to omit the gradient and some effects that they do in the tutorial, to match the one you want above. it is going to involve both Dreamweaver and Photoshop.
    Creating rollover images:
    http://help.adobe.com/en_US/photoshop/cs/using/WS18F9E180-3241-4891-ACC8-82C9DFB254F5a.htm l
    watch this video:
    http://www.youtube.com/watch?v=_pVfBtW-TUQ
    -good luck!
    janelle

  • Import Images into slide show - Creating Thumbnail images -Hang

    I am using iDVD 7. I imported my images into a slideshow. The pictures were not in iPhoto but just a folder that I created and edited in Photoshop. Once I import the images, the window shows all the file names as expected but all the Image Thumbnails are blank and the top of the window there is a message "+Creating thumbnail images... (32 remaining)+" with a spinning wheel next to the message. This message stays there forever. The 32 is the number of images in the slideshow. I can do most things in iDVD while this is going on, but I cannot add the audio I want.
    What is causing this and can I get it to stop?

    To add to this I decided to remove the slideshow and now import the pictures from iPhoto. I can only get ride of the message by closing iDVD down. When I relaunch iDVD the message is gone. When I now import the pictures from iPhoto the same thing happens where it hangs on creating thumbnail images.

  • Cannot create disk image iDvd 7.1.2 (multiplex error)

    I'm at my wits end and extremely disappointed.
    Basically, I've gone through the threads that I can find, I'm down to importing a basic movie directly into iDvd.  No menus.  No options enabled (that I'm aware of). 
    When I go through the iDvd process of creating a disk image all goes smoothy until the very end when I get a multiplexor error (no error code or text saying why). 
    Extremely frustrating.  This is on a new Macbook Pro running 10.7.2.  I don't have problems with my other Apple systems, just this new one.  Perhaps Apple would like to take it back??

    Hi
    Multiplexing Error
    Multiplexing error is a very complex problem due to many things (long long list following) -
    one common but not obvious reason is that material on the iDVD menu goes outside the TV-Safe area (or just touching it).
    So first - turn on TV-Safe area and move any object well inside of this.
    Wide screen stretched - usually (as I think) it is due to making a 4x3 movie in a 16x9 wide-screen project OR the other way around. This forces one to on flat-screen TV (or other) set the presenting view right - My has 4x3, wide-screen, zoom and auto-wide-screen and I have to switch this by my remote for some DVD I've made "wrong" way.
    Now my long long list on Multiplex Error
    LONG LONG LONG LIST
    Multiplexing Error
    PART One.
    Use of strange video/audio material e.g. .avi, .wmv, .mp3 etc.
    I only use.
    Video - StreamingDV (miniDV tape via FireWire) and
    Audio - .aiff (as on audio-CDs) (else converted to this .aiff 48KHz)
    Photo - .jpg (.bmp known problematic)
    Chapters !
    A.    Using strange letters in video project name e.g. +,/; etc. keep to a-z and 0-9 strange letters in project name e.g. +
    as described by Donnyboy69.  Does the title of your project have any symbols or decimal points in it. If so, that is why you are getting the error. I had a project that had a + sign which caused the same problem. I renamed it without the symbol and low and behold, it worked.
    B.    Location of Chapters
    • Can’t be at start or end of movie (Skip first/start one - iDVD sets this by it self. At the End - no need)
    • Not in a transition (or within 2-3 seconds from it)
    Important when from iMovie HD6 or previous - Now also observed when using FCE 4
    PART Two.
    from Robert Modero.
    "Multiplexing Error. Problem during initialization of tracks"
    Simply remember to add subtitles to your Quicktime files and menu buttons.
    Once I did that, I was back in business.
    from Boise Jim
    Do a safe reboot (by holding down the shift key until you see the spinning gear on gray background, then release, then restart when your start-up screen appears).
    I always makes a DiskImage first and test this so that it runs OK
    I use only - Verbatim DVDs
    I use only - DVD-R
    I burn at an as slow speed possibly e.g. x1
    This gives good DVDs
    PART Three.
    Multiplex Error
    Chuck, Chicago 2/7/2009.
    Back again. Here is what I have found to work. I also have and use a LaCie DVD-R/RW DL external drive and a LaCie external hard drive as well. Since yesterday I have tried a few ways to burn a themed iDVD project having four 56 minute movies on it, amounting to 226 minutes onto a DVD DL disc, capacity 240 minutes. Apple tech support really didn't know what to do but gave me a very good tip. I had two options left. Apple tech support's tip was to try disc image. One of the replies on a thread with this subject said not to, but my experience today is good. Put your project onto "Burn to disc image," under "iDVD, file." Yesterday encoding took me 23 1/2 hours. Overnight for iDVD disc image, encoding took 21 1/2 hours (again) while I slept. This morning I tried to copy/burn disc image to a DVD with Roxio Toast 7, and it stopped near the end of the burn with some kind of "error" message. So then I tried Utilities> Disc Utility> Burn icon, and followed it through. Be sure to click the DVD DL drive in the window "Burn disc in.". I had one other problem though. At the end of a 46 minute copy, it started to verify, and at the end of verify it rejected the burn. So I tried again, and when "verify" appeared, I clicked on "Skip." The disc finished burning and is doing fine and well. A long and tortuous process, but at last something works. I made several additional copies using Disc Utility. Best wishes. Chuck, Chicago.
    2. Disconnect any other external devices not absolutely needed.
    e.g. external USB/USB2 hard disks, other FW hard disks etc.
    3 Chapter marks in transitions - minimum 2 sec from
    FROM Bev.
    (Not a 'guy' but I will answer!)
    First, I do not think that mixing wide-screen and standard makes a difference in iDVD.
    Second, you should use a better brand of DVD disk. Also, many of us have experienced fewer problems on playback with DVD-R disks. Recommended brands here are Verbatim, Maxell and Taiyo Yuden. Memorex and TDK are not consistent and may not give you a correct burn. They apparently have fewer layers in the composition of the disk. I have always used Verbatim DVD-R disks and have not had any burn problems.
    Also, choose a slower burn speed, 4x or less.
    Third, to determine if the iDVD project will burn properly, create a disk image file (from within iDVD, go File->Save as Disk Image) and test it. Mount the disk image and then open DVD Player (in Applications) and view your project. If it plays correctly, you can then burn the actual DVD disk from the disk image file using Disk Utility.
    From. Boise, Idaho
    I did everything I've seen suggested, but a friend (who used to be an Apple Genius) suggested that I do a safe reboot (by holding down the shift key until you see the spinning gear on gray background, then release, then restart when your start-up screen appears).
    It worked, and I got a clean burn from iDVD.
    Hopefully this can help other people.
    by dheb0422
    Well, I finally got it, and it was odd enough to post here incase anyone looks this topic up again. Many things were tried, including burning the unedited film, the edited film without titles and chapter markers, abbreviating the chapter markers in case length was the issue (remember the old iMovie used to truncate them when moving to iDVD?). In the process, I noticed that one, and only one, chapter marker was on the same line as the title marker. All the others were on the line above. The only way I seemed able to change that was to clip a few seconds of film. After that last clip, the offending marker took a place on the line above, as were all the others. That run published, compiled completely and burned. That's one for the books.
    One user more writes
    To add my experience with Multiplex Errors using iDVD (7.0.4), I recently created two iDVD projects
    Video from both passed from FCE 4.01 with chapters
    One project worked fine in creating disk image file
    The other gave Multiplex Errors
    I tried suggestions to remove special characters and no chapter marks at beginning, but nothing worked
    Note that I've used iDVD for dozens of projects and this is first time I've run into Multiplex Errors
    Anyway, for problem project, I tried an experiment where I removed all chapters in FCE and passed to new iDVD project
    This time multiplex errors gone
    So had something to do with chapters
    So now I tried numerous experiments to remove individual chapters and try again creating disk image with new iDVD project
    After numerous tries, I was able to narrow problem down to 1 "Bad" chapter mark
    That is, when I left the "bad" chapter in my FCE project and passed to iDVD, iDVD gave multiplex error
    When I removed "bad" chapter mark (and others in), no multiplex error
    As a final experiment, I moved "bad" chapter mark about 5-10 sec's beyond original point and passed to iDVD, the multiplex errors now magically went away and I was able to finally create my disk image.
    I have no idea why this worked, but thought I'd mention here in case someone else runs into similar problem.
    Rich839
    In addition to Bengt's fine advice, burning errors can occur if you have located any of your menu buttons wholly or partly outside of the safe TV viewing area. Go to your main project menu, then click on View/Show TV Safe Area, to check. Drag into the safe viewing area any buttons that are outside the safe viewing area.
    Russ One - suggest this
    Multiplex Error-There was an error during muxing preparation
    One thing that worked for me was to export the video w/o chapter markers as a self contained movie (thereby not loosing the edits & etc). Then make a new FCE project and import that movie into a new sequence and add the chapter markers. I've used "-", "&" and "," with no problem in the chapter names. Removing the markers or exporting without them did solve the problem but renaming them with just numbers 1,2,3....5, did not solve the problem and since this problem seems to happen with with iMovie as well, it would suggest the problem is in the video or audio and in combination with the chapter markers iDVD just can't handle it. The only other possibility is that both iMovie and FCE share the same or similar chapter marker code that some how is corrupting the markers.
    Summary - What to try
    1. Chapters
    • Only A to Z and 0 to 9 in chapter title
    • No Chapter mark at very beginning of movie
    • No Chapter mark in or within 2 seconds from any transition in movie
    2. TV-safe area for buttons (no one outside this)
    3. Safe re-boot
    4. No other external devices connected - that are not needed
    SDMacuser adds to this
    • On #4 ... No ext. devices. Some think this applies mainly to ext. FW. Not the case. Also applies to ext. USB2 as well (not to mention flash drives too).
    Do not leave 3rd party devices / camera / camcorder plugged in unless it is being used with iDvd's One Step process. Certain web cams can trigger this also (especially ones with added features like LED light/s that draw additional power from the FW or USB bus).
    5. Minimum of 25Gb free space on Start-up hard disk
    6. Make a DiskImage first - reduces where problem originates
    7. Trash iDVD pref. file
    8. Make a new iDVD project
    9. Movies in project with same aspect ratio e.g. 4x3 or 16x9
    10. No other programs/applications running during iDVD process. e.g. Internet, screen & energy savers
    Yours Bengt W

  • Find color of specific pixels

    I'm working with grayscale images and I need to find average darkness of specific regions. The areas are all perfectly circular.
    I can't figure out how to determine the color of specific pixels in an image. Does anyone know of a way? I need to process millions of pixels so I would prefer something that can do this relatively quickly. The images are all grayscale, so I only really need to know the darkness of the pixel.
    I don't suppose there is any built-in way of doing this that would be more efficient than my computing the average manually?

    Ok, it seems that I can use a BufferedImage to acquire the colors of specific pixels. I found a couple methords that seem relavent:
    public int getRGB(int x, int y)
    public int[] getRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
    The first is pretty staight forward, but I am interested in performance, and the second sounds like it could be better.
    I'm not sure about the meaning of the the scansize argument:
    scansize - scanline stride for the rgbArray
    Am I right in thinking that rgbArray is defined that the value in the first index (after offset) is the upper left corner, the next is the pixel directly to the right of it. When the index become equal to scanline, you are now on the next row of pixels below.
    This doesn't make sense to me because it would defeat the purpose of having 'w' (the width).
    Now, the other question is whether using the second methord will actually improve performance...I need circular regions, so using a rectangle will waste data. Would I be better off using getRGB(int x, int y)? How about creating a subclass of BufferedImage designed to extract the colors in a circular manner. Actually, is using a BufferedImage the best approach even?

  • Class casting, creating an image and decompiling...

    Hi, I've got a couple of questions:
    1)
    How can I fully decompile classes, so with the implementation of the methods? Is it always possible to fully decompile a class file? When is it and when not?
    2)
    I aks this questions before, but I still haven't got it working, so sorry, but I ask it again :) :
    I want to create my own class, for example cMyClass which extends the java.awt.Image class, which has abstract methods. How do these methods(for example getGraphics etc) have to be implemented?
    3)
    I can't cast a Image to cMyClass... why not?
    Someone told me he did the following:
    Canvas c = new Canvas()
    cMyClass oImage = (cMyClass) c.createImage (100, 100);
    and that this worked... I tried to do this too, and it seemed to work, but it actually didn't!!
    I found out that c.createImage returns a null reference!!! That's why Java was able to cast it to my own cMyClass (not a problem to cast a null to something else), but when I created a Image (by doing a lot of unnessacary difficult stuff), and then tried to cast this Image to cMyClass it throw a ClassCastException or something like that...
    How can I cast the java.awt.Image class to my class anyway?
    3)
    Why can't you create a image like i've done above or even like below:
    Canvas c = new Canvas()
    Image oImage = c.createImage (100, 100);
    Why does this return a null reference?
    Isn't there a better way to create an image?
    4)
    The getWidth and getHeight need a I thought observer...? Why is this? I just want the width and height and don't have an observer or something like that. Is there a way around this?
    I tried getWidth(null) but this returns -1
    Please help! :)

    Hi, I've got a couple of questions:
    1)
    How can I fully decompile classes, so with the
    implementation of the methods? Is it always possible
    to fully decompile a class file? When is it and when
    not?You can always get a dump of the bytecode with 'javap -c'. If you don't want to figure things out yourself, try searching google for a class file decompiler, possibly a de-obfuscator.
    De-compilation is completely possible if the original author wanted that, by including debugging information. Depending on the degree of such information and the amount of code obfuscation, the decompiled code may lack variable names, line numbers, field and method names, class names, and even code structure. Names and line numbers are usually not re-creatable automatically, since the information is simply lost, but you can replace them with your own strings when analyzing an unknown class file (using the correct tools). Re-creating the original code structure may work in some cases, but to me the general case looks rather close to the halt problem (i.e. not solvable).
    Use a de-obfuscator, hope you've got good luck, and analyze the bytecode manually if that doesn't work.
    2)
    I aks this questions before, but I still haven't got
    it working, so sorry, but I ask it again :) :
    I want to create my own class, for example cMyClass
    which extends the java.awt.Image class, which has
    abstract methods. How do these methods(for example
    getGraphics etc) have to be implemented?I don't really understand the problem. 'abstract' means on the language level that your subclass must provide an implementation, i.e. a method body. What that method is expected to do is explained in the javadocs for Image. But in fact you're free to do anything. You could play a sound in the getWidth() method (replace with any method name if you want). Just consider the fact that a lot of code calls getWidth in the hope of getting the width of the image, not playing a sound. So much about the language level.
    On a higher level, a subclass of Image should implement a certain way to describe an image. AFAIK this means that your code must know the size of the image and know how to produce the pixels of the image. I can't tell you in general how you must do this, because it depends on your special case. This boils down to the question, why do you want to write a subclass of 'Image'? What new way of describing and image have you come up with?
    3)
    I can't cast a Image to cMyClass... why not?Simple, and that's certainly not an ALT. Because that specific Image is not a cMyClass. It's probably a BufferedImage or similar that was produced by AWT.
    Please read the specs carefully what casting is about.
    Someone told me he did the following:
    Canvas c = new Canvas()
    cMyClass oImage = (cMyClass) c.createImage (100,
    100);
    and that this worked... I tried to do this too, and it
    seemed to work, but it actually didn't!!
    I found out that c.createImage returns a null
    reference!!! That's why Java was able to cast it to my
    own cMyClass (not a problem to cast a null to
    something else), but when I created a Image (by doing
    a lot of unnessacary difficult stuff), and then tried
    to cast this Image to cMyClass it throw a
    ClassCastException or something like that...
    How can I cast the java.awt.Image class to my class
    anyway?You can't, and if you understood casting then you'd understand that it wouldn't make sense.
    3, 4(don't know)
    Maybe stupid question, but for example the BufferedImage, is this
    completly written in Java?
    How is the link made between the OS+hardware and the Java code? I
    mean, displaying images etc. is very platform dependend not?Look for JNI (Java Native Interface). It's a way to link native (e.g. C) code with Java code.

Maybe you are looking for

  • How to include a Header in Hierarchy List (ALV)?

    Hi Gurus, If we need to include any header in ALV Grid, then we generate an event and pass that header to TOP_OF_PAGE event. We do have I_CALLBACK_TOP_OF_PAGE parameter for the REUSE_ALV_GRID_DISPLAY function module. But how do I generate a Header fo

  • Runtime error in ALV interactive report

    Hi all, While clicking the cutomer no to get the order details am getting run time error. Your help will be rewarded. REPORT  Z_INTERACTIVE_ALV. TYPE-POOLS : SLIS. TABLES : KNA1. TYPES : BEGIN OF TY_KNA1,        KUNNR  TYPE  KUNNR,        NAME1  TYPE

  • CS6 Crashed Windows File Explorer when loading Actions

    Had a Tif file open and was trying to load an action set saved from CS5.  The Actions File Open dialog box opened then crashed the Windows Explorer (not internet Explorer) and allowed me to cancel the Adobe Actions Open dialog when the explorer resta

  • Why does Firefox v 7.0 no longer pass downloads to Speed Download?

    All my Browsers worked with Speed Download v. 5.2.28 doing the downloading for them (installed are Safari 5.0.5, Chrome 14, and Camino 2.0.9), but since updating to v 7.0 Firefox no longer seems to allow the downloads to be handled by SpeedDownload.

  • Is 3rd party imap support available in iCloud

    I previously had a 3rd party email set up in MobileMe so I just had to check one place to see my emails.  Are you able to also do this in the iCloud email? I have moved from MobileMe to iCloud and all my emails seem to be coming through to my iPad, b