Using non-rectangular images

hii,
i am a new-B.
please tell me how can i use nonrectangular images like balls in my application.

Whilst images are rectangular, pixels can be transparent, and clipping can
limit the parts of an image you render.

Similar Messages

  • Urgent!Java Frame Cutting according to non-rectangular image (Transparency

    Urgent-Java Frame Cutting according to non-rectangular image (CrossPlatform - Transparency)
    hi, i want to make the frame transparent in order to make a skin like Windows Media Player . skin is non-rectangular how should i make the frame transparent i am using the JWindow as the container. Plz guide me any idea. as an example i have a JWindow i put a non-rectangular image on it via Jlabel . now i want to make the edges of JWindow outside the boundery of the image transparent ... so that my frame seems like a non-rectanguar image . How i do that? But i need a cross platform kinna thing in java especially for windows/mac/linux
    PaulFMendler :: thanks for ur help i looked at the code but it seems to be windows dependent. i need cross-platform way of producing abt effects. please contact me even on my email >> [email protected]
    Waiting ......

    Check out the link shown below:
    http://forum.java.sun.com/thread.jsp?forum=4&thread=391403
    The posted code has slight problem when moving the JWindow around but you can get a pretty good idea on what has to be done.
    ;o)
    V.V.

  • Cropping non-rectangular image

    Hello,
    I need to crop  a slightly non-rectangular, four-sided image (a photo of a picture in a frame) and end up with a rectangular image. I've tried cropping and lassoing but nothing seems to do the job. Most grateful if anyone can tell me how I might do this on PSE.
    Thanks
    Michael

    Witteboomen wrote:
    Plse excuse Dunn question, Michel, but what is ACR?
    Best
    Michael
    ACR (Adobe Camera Raw) is the module of PSE which is used to first convert raw images so that they can be read and edited in the Editor.
    This module can also be used to open jpeg files:
    In the Editor, menu /File/Open As
    you select a jpeg picture and in the line'Open As', just under where you enter the file name, you must choose the 3rd option :
    Camera raw...
    This opens a new dialog window in which you can do the main edits to your image by adjusting a few sliders.
    Of course, raw file will benefit more from being processed in ACR, but it's also interesting for jpegs.
    How can editing through ACR be a 'non destructive' process ?
    It's because the principle of ACR (also used in Photoshop CS) is to store all editing commands and settings separately from the original picture data which are never changed. In the case of jpegs, the settings are stored in the metadata section of the jpeg file (where the camera name and settings are kept) without changing anything in the way pixels are represented. The 'recipe' is stored, but the pixels stay unchanged. When you straighten and crop, if you click 'Done', the settings are saved. If you want to do some editing or print your file, you click 'Open' and the result of your edits in ACR is opened in the Editor.  If you do changes in the editor, of course, those edits will be 'destructive' (as usual in the Editor)  so that you'll have to save the file with another name to keep the original. If you do no edits in the Editor,  but only print or convert the file to another format, the original picture data is not changed.
    In that last case, you don't need to re-open the picture with 'Open As', the Editor will know the picture has to be opened in the ACR module with the usual 'Open'. But it you want to re-open the same picture in another application like Picasa, the Adobe editing data will be ignored and you'll see the original version.

  • Non-rectangular image cells

    Can the image cells in the print module only be rectangular in shape?
    I thought about doing diagonal slices for a series om images, but came up short in trying to create one.

    Witteboomen wrote:
    Plse excuse Dunn question, Michel, but what is ACR?
    Best
    Michael
    ACR (Adobe Camera Raw) is the module of PSE which is used to first convert raw images so that they can be read and edited in the Editor.
    This module can also be used to open jpeg files:
    In the Editor, menu /File/Open As
    you select a jpeg picture and in the line'Open As', just under where you enter the file name, you must choose the 3rd option :
    Camera raw...
    This opens a new dialog window in which you can do the main edits to your image by adjusting a few sliders.
    Of course, raw file will benefit more from being processed in ACR, but it's also interesting for jpegs.
    How can editing through ACR be a 'non destructive' process ?
    It's because the principle of ACR (also used in Photoshop CS) is to store all editing commands and settings separately from the original picture data which are never changed. In the case of jpegs, the settings are stored in the metadata section of the jpeg file (where the camera name and settings are kept) without changing anything in the way pixels are represented. The 'recipe' is stored, but the pixels stay unchanged. When you straighten and crop, if you click 'Done', the settings are saved. If you want to do some editing or print your file, you click 'Open' and the result of your edits in ACR is opened in the Editor.  If you do changes in the editor, of course, those edits will be 'destructive' (as usual in the Editor)  so that you'll have to save the file with another name to keep the original. If you do no edits in the Editor,  but only print or convert the file to another format, the original picture data is not changed.
    In that last case, you don't need to re-open the picture with 'Open As', the Editor will know the picture has to be opened in the ACR module with the usual 'Open'. But it you want to re-open the same picture in another application like Picasa, the Adobe editing data will be ignored and you'll see the original version.

  • Non-rectangular or transparent images

    Hi.
    Not using Swing, can I use non-rectangular images for animation purposes ?
    Alternatively, can I use rectangular images with a "transparent" color as a background ?
    If so - How ?!
    Thanks.

    GIF98a images can have a mask (transparent) color set. Otherwise, set the 'alpha' component of pixels that use your chosen mask color.
    http://tutorials.findtutorials.com/read/id/111

  • "Non rectangular objects will not appear correctly when exported using CSS."

    I am using Ind CC 2014 exporting a document to a reflowable epub.  The document contains an .ai image.  The image exports correctly in some parts of the.epub but not others, where it is distorted. There is a warning on export :"Non rectangular objects will not appear correctly when exported using CSS."  Any suggestions appreciated.

    Thanks!
    >
          "Non rectangular objects will not appear correctly when exported
          using CSS."
    created by pooja2087 <https://forums.adobe.com/people/pooja2087> in
    /InDesign EPUB/ - View the full discussion
    <https://forums.adobe.com/message/6886892#6886892>

  • Non rectangular windows using Swing

    Hi everybody
    I've been trying to create a non rectangular window (i.e. an oval window) subclassing javax.swing.JWindow but even though the drawing of the inside of the window works correctly, the problem is with the outer part, which is painted anyway using the background color while I'd like to have it
    transparent so to simulate a real oval window.
    i.e. I'd like to have something like (dots are just fillings to give the drawing some shape):
    |. Transparent background...|
    | ..... ----------------------- .......... |
    | .... / Window ............... \ ....... |
    | .... \ contents .............. / ....... | <--- Window's bounds
    | ..... ----------------------- .......... |
    |_____________________|
    Any idea about how to prevent the background from being painted??
    Thanks in advance
    andrea

    Here is what I have done to overcome a similar problem.
    These two classes help me show a 'Bubble' popup similar to what Windows XP have
    You can tweak it like you want.
    /* Subclass of Window to show the Bubbles */
    public class WindowBubble extends Window{
    public WindowBubble(Frame owner, String text, Point startingPoint){
    super(owner);
    JBubble bubble = new JBubble(text, startingPoint);
    setLocation(startingPoint);
    add(bubble);
    pack();
    /* This code is based on SUN's examples of how to create Oval-Components */
    public class JBubble extends JLabel {
    int capWidth = 30;
    Point start;
    String label;
    BufferedImage image;
    public JBubble() {
    this("", null);
    public JBubble(String label, Point p) {
    this.label = label;
    start=p;
    try {
    Robot r = new Robot();
    image = r.createScreenCapture(new Rectangle(start.x,start.y, getPreferredSize().width, getPreferredSize().height));
    }catch(Exception e){
    e.printStackTrace();
    this.setHorizontalAlignment(JLabel.CENTER );
    public String getLabel() {
    return label;
    public void setLabel(String label) {
    this.label = label;
    invalidate();
    repaint();
    public void paint(Graphics g) {
    int width = getSize().width - 1;
    int height = getSize().height - 1;
    g.drawImage(image,0,0,this);
    Color interior;
    interior = (Color)UIManager.get("ToolTip.background") ;
    // ***** paint the interior of the button
    g.setColor(interior);
    // left cap
    g.fillArc(0, 0, // start
    capWidth, height, // size
    90, 180); // angle
    // right cap
    g.fillArc(width - capWidth, 0, // start
    capWidth, height, // size
    270, 180); // angle
    // inner rectangle
    g.fillRect(capWidth/2, 0, width - capWidth, height);
    // ***** highlight the perimeter of the button
    // draw upper and lower highlight lines
    g.setColor(Color.black);
    g.drawLine(capWidth/2, 0, width - capWidth/2, 0);
    g.drawLine(capWidth/2, height, width - capWidth/2, height);
    // upper arc left cap
    g.drawArc(0, 0, // start
    capWidth, height, // size
    90, 180-40 // angle
    // lower arc left cap
    g.drawArc(0, 0, // start
    capWidth, height, // size
    270-40, 40 // angle
    // upper arc right cap
    g.drawArc(width - capWidth, 0,// start
    capWidth, height, // size
    90-40, 40 // angle
    // lower arc right cap
    g.drawArc(width - capWidth, 0, // start
    capWidth, height, // size
    270, 180-40 // angle
    // ***** draw the label centered in the button
    Font f = getFont(); if(f != null) {
    FontMetrics fm =
    getFontMetrics(getFont());
    g.setColor(getForeground());
    g.drawString(label, width/2 - fm.stringWidth(label)/2, height/2 + fm.getHeight()/2 - fm.getMaxDescent() );
    public Dimension getPreferredSize() {
    Font f = getFont();
    if(f != null) {
    FontMetrics fm = getFontMetrics(getFont());
    return new Dimension(fm.stringWidth(label) + capWidth*2, fm.getHeight() + 10);
    } else {
    return new Dimension(100, 50);
    public Dimension getMinimumSize() {
    return new Dimension(100, 50);

  • Using non-square template images

    Is there any possibility of using non-square templates in IMAQ Match Color Pattern? For example, I need to find predefined circle in the image, but in case of using it as a template, it will be surrounded with zero pixels. Would it influence on searching results?

    To do color pattern matching, you will always have a rectangular template image.  Depending on your application you may want to try doing geometric matching to limit your image to only that portion that you are wanting to search through.
    Regards,
    Jasper S

  • Is it possible to load a non-standard image using some Java API?

    Hi,
    My "problem" is:
    1. I have an image called "mediterranean_sea.IMG" (non-standard image format)
    2. I need to process it (histogram, palette, etc).
    3. I'm wondering if it is possible to load this image an process it using some Java API.
    4. I've tried to do this using JAI but I think that this API only works with TIFF, PNG, JPEG, etc.
    Any idea?
    Thanks in advance,
    Roger

    [url http://forum.java.sun.com/thread.jsp?thread=468188&forum=31]Cross-post

  • Non-Rectangular Buttons with images

    is it possible to create a non-square "button" in flash cs4
    programmatically using as3?
    Using a xml document, i'm trying to be able to retrieve a
    .png file with transparency, and have said transparent area's be
    not clickable.
    Long story short, I'm creating a map with a bunch of
    clickable areas. These areas are non-rectangular and I need them to
    not obscure other area's which would be in their rectangle. I need
    this to be done programmatically since the area's are going to be
    dynamic as is the data attached to them.
    fyi: I have a fairly good grasp of OOP, so don't be afraid to
    post up complex instructions.

    Now we're cooking with gas! Thank you so much for your
    assistance!
    The only issue left;
    is it possible for the Events to penetrate through, so that
    if two elements slightly overlap, the transparent part of obj1 will
    allow a onclick (and subsequently the onmouseover) event on el2,
    preferably dynamically so that I don't have to add event handlers
    between the two.
    Is there a simple way or do i need to calculate the overlap
    using the x/y coords and width/height of each element, then
    manually dispatch?
    here's where I'm at thus far (with this discussion)
    Firstly, the class for the movie clip,
    then our frame.

  • Non-Rectangular JFrames using JNA or IBM IFrame

    Hi,
    I want to make a non-rectangular frame with round-shaped edges. I searched through this forum. But still unsuccessful. I can even go for a platform dependent solution. But i don't want to use Robot class which is taking screen-captures at interval or at system-events. This approach is very slower and faulty. Is anybody having experience in using JNA or IBM IFrame libraries (or any other approach) for this purpose?
    Thanks in advance,
    Sunil

  • Non-rectangular click area?

    I have a map that contains several areas, which have
    irregular shapes, i.e., they all have non-rectangular contours.
    Each such area is a movie clip, made from a transparent gif. Any
    part outside of this area (non-rectangular contour) is transparent.
    I have onRollOver and onRollOut event handler to process when
    a mouse moves in or out of an area. But it seems that a "in" only
    happens when mouse actually moves into the rectangle that enclose
    an area and "out" only happens when mouse actually moves out that
    rectangle.
    So, how to make these events handle this non-rectangular
    shapes? Thanks!

    quote:
    Originally posted by:
    Newsgroup User
    If you're making an what's usually called an "invisible
    button," then all you need is artwork in the Hit frame only. If you
    only have shapes (or whatever) in the Hit frame, then the button
    symbol will be invisible at runtime, and will show as a teal
    preview in the authoring environment.
    The MovieCip.hitArea property is a property of the MovieClip
    class, which defines the functionality for all movie clips. The
    Button class does not feature such a property, so if you want to
    use it, you'll have to use
    movie clip symbols.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."
    Thanks! Words convey knowledge.
    After reading your reply twice, in fact, from thinking too
    hard to make the whole thing work based on those GIF-derived movie
    clips, I just realized that I should've created the clips directly
    from vector images.
    Now, for each area's gif bitmap, I converted it into vector
    first and then converted it into a movie clip symbol. In this way,
    no special codes need to be used and it is more straightforward.
    So, I guess one big wrong assumption I've made until now is
    that converting a GIF directly into a movie clip should
    automatically include a step to make the bitmap vector image.
    Thanks all for your help!

  • Problem rotating a non-square image

    I am getting very strange results trying to use an AffineTransform to rotate a rectangular but non-square image. If I pre-define a destination Image, then after using the AffineTransform to filter the source, most of the destination image is black (because the resultant image isn't positioned correctly). This is especially true when I try to rotate an image 90 degrees counter-clockwise, in which case I don't know what happens to the rotated image.
    If I try to just let the filter method produce a new image to return to me, it returns a completely square image, which cuts off some of the image if it isn't square. I'm really lost as to what to try next. Here is my code...
    at = new AffineTransform();
    at.setToTranslation( roiImage.getWidth()/2, roiImage.getHeight()/2);
    at.rotate( Math.toRadians( angle ) );
    at.translate( -roiImage.getWidth()/2, -roiImage.getHeight()/2);
    AffineTransformOp atOp = new AffineTransformOp( at, renderingHints );
    /* construct the new destination image with the correct post-rotation bounds */
    BufferedImage rotatedImage = new BufferedImage( roiImage.getHeight(), roiImage.getWidth(), roiImage.getType() );
    atOp.filter( roiImage, rotatedImage );
    roiImage.flush();
    roiImage = rotatedImage;
    Any ideas on why this might be acting so strange? Can I even use an AffineTransform to rotate a non-square image?

    could you provide me a code sample? I've tried doing it that way as well, but I'm still having troubles. I think I'm just missing something small and simple :-(
    thanks for the quick response.

  • Book Non-Pick Images confusion

    I am totally confused and frustrated. I am trying to create a photo book for the first time and am working on one within a particular project. I have an edited color and black and white versions created from every master shot.
    When I try to place an image on the photo book I get a bizarre message that tells me I can tried to use a "Non-Pick Image." What difference should it make?
    If I select the image I want and make it the pick in the stack, it moves to the top of the stack, but the little check mark icon doesn't change and it STILL won't let me use the image I specified as "the pick" on the book.
    Why do I need to use strictly "the pick" image from a stack? Makes it impossible to use the same image from a stack more than once. Nothing I seem to do allows me to use anything but the master image.
    This shouldn't be this hard. I see the image I want, I drag and drop it where I want and I'm done. How do I get around this bug/feature?
    Thanks.

    I experienced another side effect to this 'feature', and in figuring it out, I think I have the answer to your question. The quick answer is to unstack everything, or create new versions. If you want to understand what's going on, and learn the third way, read on...
    There is a tiny mention in the manual that Stacks contain a series of related images, and one pick. This 'one pick' fact is very important. Stacks allow you to group images, but you can only designate ONE IMAAGE from the stack as the one to use. (The 'Pick'.) All the others in the stack are preserved in case you want to use one of them later instead, but they are basically hidden and can't be used in albums or books (I think). So, one pick per stack, and that is the left-most image (the one that stays on top when the stack is closed).
    There is one confusing exception to this. You can designate another image in the stack as the 'Album Pick'. This tells Aperture that for this album only (or book), use the image in the stack with the check mark instead of the stack pick. You can set an Album Pick by selecting the image and choosing Stack > Set Album Pick (or something -- don't have Aperture open right now).
    I haven't tried this yet, but I think if you make one image in the stack the Album Pick, then you can use two images from the same stack: the Stack Pick, and the Album Pick.
    I still don't really get why.
    Here is the scary side effect with books. BEWARE! So, I spent hours and hours building a 40 page book. I wanted two versions of the book -- both mostly identical, but a few pages were to be different in the second one. So, I got the first book perfect, adjusted all the images, proofed it, etc. Once I was satisfied, I duplicated that book and intended on making the few minor changes to the duplicate. Well, after I while, I noticed in shock that some images in the duplicate book did not have adjustments applied to them. After more investigation, I discovered that these 'non-adjusted' images were actually DIFFERENT IMAGES! Whereever I had used images from stacks in the first book, the duplicate book used some other images from the same stack!! This was disturbing!!! Such a major change, and NO NOTIFICATION.
    I don't fully understand this, but basically, if you unstack the images, or use the Stack Pick and Album Pick, or create new versions of the images, you will avoid this problem.
    So, Stacks are powerful and can be confusing. They are more than neat little organizers as I found out -- not at all like iPhoto's Events.
    Does anyone have anything to add? What am I missing here?
    Thanks

  • In Preview, I suddenly am unable to get the "Adjust Color" tool panel to edit images. I just get the rectangular image selection tool instead. How do I ge the "Adjust Color" tool panel back?

    In Preview, I suddenly am unable to get the "Adjust Color" tool panel to edit images. I just get the rectangular image selection tool instead. How do I ge the "Adjust Color" tool panel back?

    Hmmm, I wonder if that window is hidden or off screen? Have you moved the pic window around to look under it?
    Might try this...
    Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions.
    Then move these files to the Desktop for now...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    /Users/YourUserName/Library/Preferences/com.apple.Preview.plist
    /Users/YourUserName/Library/Preferences/com.apple.Preview.bookmarks.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

Maybe you are looking for

  • An error occurred while publishing

    I get this error again and again... "An error occurred while publishing file "/Web/Sites/Blog/Blog/Entries". Try publishing again later" And I have no clue what is going on..

  • Cannot move iDisk icon on desktop display.

    Help, I cannot move my iDisk icon on the desktop display. All other icons move with no problem.

  • Presentation Service- Page cannot be displayed

    Hi The presentation service page is not displayed but admin tool is opening. Oracle bi server is running and so as presentation service too But oc4j is having trouble..when I start the oc4j the command prompt widown pops up and goes off. Think by thi

  • JROCKIT for Solaris 8

    Where do we get Jrockit VM for Solaris 8 ? Thanks..sankar

  • DATABASE SERVICE NAME

    HOW TO GET DATABASE SERVICE NAME? I NEED IT INORDER TO INSTALL COMPANION PRODUCTS? ANY HELP THANKS ANYWAY