Help creating an image/shape

Hi,
I'm looking for some help to create something similar to the below shape on the box (the pic in the top right). I am just looking to create the shape--I know how to add my own text. I am beginner when it comes to CS6 and learning the ropes. Any help would be greatly appreciate!
Thanks!
Saundra

Thanks, this was helpful. I didn't even think to try to create a few shapes to get what I wanted. I just played around with it and ended up creating one rectangle and 2 circles and manipulating them to get a shape close to what I was looking for.
Thanks again for the help and quick response!

Similar Messages

  • Help creating rasterized images for all level 1 toc for epub ebook

    I am creating an ebook (epub) for a course that I had previously made in iBooks Author, but iBA files do not open on iPhones. So I have decided to recreate it as an epub 2.0.1 in InDesign. There are 2 levels to my Table of Contents, each week and then multiple pages underneath each of the 9 different weeks. I am creating essentially an intro cover image for each week, so when you click on "week 1" in the toc it directs you to a "rasterized image" discussing what each student will be learning in that specific week. I've tried so many different ways but I still haven't gotten it to work the way I want. The rasterized intro cover image shows up in the book, but usually adds another blank page after it, and sometimes I can get it to show up in the toc in level 1 and sometimes it disappears. I get confused on whether it should be a paragraph style with the export tagging "split document (epub only)", or changing the objects export options. Ultimately, I feel like I've tried a combination of everything and confused myself even more. I haven't found any information on anyone executing this before, so even if anyone knows any links to help me or if anyone has done this before, your help would be appreciated!
    I hope this makes sense, because honestly I don't even know what to call these rasterized intro cover pages for each week (let alone what to search for), Colin Fleming from Adobe InDesign calls the cover pages "title images" so maybe that is a more appropriate name, however I don't want these images at the beggining of the book, I want them spread out before each week.

    I would check out the website of Elizabeth Castro. She has created several eBooks on creating EPUBs:
    http://www.elizabethcastro.com/epub/
    Also check out her blog:
    http://www.pigsgourdsandwikis.com
    Quite likely, this cannot be exported directly from InDesign but will have to be done by editing the CSS after you've exported the EPUB so I hope you're good at HTML/CSS.

  • Hi, In need of help creating a simple effect to image.

    Attached is an image which shows more or less the effect I am needing to achieve.
    http://i303.photobucket.com/albums/nn149/Jaybeedubya/FotoliaComp_635945_xs3N3VFLwPNTIOm1.j pg
    I created the image above by desaturating the colour image of the man and then adding a new purple layer and selecting 'vivid light' from the layer palette drop down box. In doing this the man became purple but the white area surrounding him stayed white...I then adjusted the layers on the first layer so that the white part became purple - the final result is what you see in the attached image.
    The problem is this - I need to create this effect for 15 or so images all with a specific purple pantone colour, I need to create these for print ready artwork. All the pictures (ie the man) I will be using, need to look the same kind of shade. The way I was creating these before was to adjust the bottom layer so its grey rather than white so that the white area becomes purple.
    Confusing huh, If you dont understand my question (and I dont blame you!) then all I need is to create a set of 15 images that look like the attached image (using a specific pantone) but I have no idea how the best way to do it is.
    How would you guys achieve that? Any help greatly appreciated.

    So its gonna be a two-color-job?
    Because with the extreme depths adding Black at least might be beneficial.
    You could make a Selection of a black&white-version-of-the-photographs luminance, inverse it and, in the Channels-Panels PopUp-menu, choose Add New Spot Channel for the Foreground color and select the Pantone color.
    Then Add New Spot Channel for the background-color and fill that solid black and hide the layers that contain the composite of the photograph.
    This should leave You with blank composite channels and the two Spot Channels visible.
    Indesign can handle either psd- or DCS2-files containing Spot Channels.
    The problem I perceive here is that depending on the print-process and the background color selected it might proof necessary to knock out the foreground elements if the company is very strict on their CI colors. Unfortunately simply inversing the foreground selection would probably not work as this might leave the mixed-color-areas greyish.
    Are the prints gonna be offset or silkscreen?

  • I am trying to create a polygon shape and place an image inside of it.

    I am trying to create a polygon shape and place an image inside of it similar to this: http://media-cache-ak0.pinimg.com/originals/1f/47/51/1f4751aeb7c30099e4caf61393990fca.jpg
    How do I go about doing it? Thanks!

    Hi
    You would need to design the image outside of Muse using any image editor like photoshop , where apply polygon frame on top of the image and area outside shape should match the color of the image of page, then insert the image on Muse page, it would be same effect. Currently we cannot create any shape in Muse , but you can try some customization using custom code.
    Thanks,
    Sanjit

  • Newbie Help: Java Object to create an image

    Hi there.
    I'm trying to create a Java class that I can call from Coldfusion that will build a GIF file based on parameters.
    The idea is, the Java object opens a "background" gif file and then writes some text onto it and saves the whole thing out as a GIF.
    Bearing in mind this class will be used directly by Coldfusion, and so isn't an applet or an application...can anyone tell me what is wrong with this code as I get a null pointer exception on the getGraphics() line:
    // Methods available to Coldfusion
    public String CreateOverlay( String imageFile, String outPath, String overlayText, int x, int y, String fontFace, int PointSize)
    try{
    Toolkit tk = Toolkit.getDefaultToolkit();
    Image im = tk.getImage(imageFile);
    Gif89Encoder enc = new Gif89Encoder();
    OutputStream out = new BufferedOutputStream(
    new FileOutputStream(outPath)
    Image newimg = createImage(100,50);
    ***** Graphics g = newimg.getGraphics();
    g.drawImage(im, 0, 0, 100, 50, this);
    g.drawLine(0,0,50,50);
    enc.addFrame( newimg );
    enc.encode(out);
    out.close();
    catch (Exception e) {
    System.out.println("Error...");
    e.printStackTrace();
    return "Dont care at the moment";
    Any help to this troubled newbie would be appreciated.

    Hi Kurt,
    You must call "setVisible(true)" on your Frame before
    creating the image.But, the thing is, this object doesnt have (or need) a GUI. Its just an object that sits on the server and its methods are called to generate an image on disk. Basically what happens is Coldfusion receives information from a user and it loads the java object, calls a method which then generates a new GIF file that is made up of a simple button background and some text (entered by the user)....it then returns the name of this file to Coldfusion and Coldfusion stores it in a database for later retrieval.
    In simple terms:
    COLDFUSION===========
    1. Creates an instance of the JAVA Object
    2. Call the generateGif method passing an image filename and some text eg:
    newFile=c.GenerateGif( "simplebutton.gif", "Some text for button");
    JAVA OBJECT========= (GenerateGif method)
    1. Load the GIF simplebutton.gif
    2. Create a new blank image
    3. Draw the loaded GIF onto the blank one
    4. Write the Text ("some text for button") onto the image
    5. Take the image and encode it to GIF format
    6. Write this GIF to disk
    7. Return the filename of the new GIF image just created
    8. Finish
    As you can see, I dont want or need a GUI.....
    Is this possible ?
    Thanks in Advance,
    Tony Johnson

  • IDVD 5 will not create an image,- why??? help please, i'm gettin' crazy!!!

    hi everybody,
    since 3 days i'm trying to create an image data from an idvd 5.0.1 project. i've choose "save as image" and everything is working fine: all menu's, all imageshows, all video's and audio-files are rendered as well. when it comes at the end to the point "burn" there comes the colored ball and NOTHING happens any more!!! it is a very complex project with 2 videofiles included (one of them is sended directly from imovie with (send item to idvd, the other one is saved as an qt-dv-file from imove and imported to idvd) and 4 image slideshows from iphoto.
    doe's anyone of you have an answer to that problem??? i'm really getting crazy because i'm trying it since friday morning :-(((
    thankful for all answers and greetungs from germany,
    marcus.

    Marcus,
    I had the exact same problem a couple of weeks ago, when trying to create a disc image. Everything rendered, but when it reached the "burn" stage, it just stopped and I had to force quit in order to get out of iDVD. The problem was in how I had "named" my disc image. I had included a slash (/) in its name. I renamed it, taking out the slash and was then able to successfully create a disc image.
    PowerBook G4 17"   Mac OS X (10.4.5)   1.5 GHz Ram 1.5 GB

  • Help creating Shell/Applescript to automate creation of Image Sequences

    Hi Everyone,
    I am currently getting into shell scripting (what fun it is!) and have created a couple of scripts that:-
    a) Take a picture with the iSight camera every minute and name them YYYY-MM-DD-HHMM.jpg
    b) Once every few hours move all images into folder YYYY-MM-DD so that all images are in one place.
    What I want to do now is automate the process of creating the Image Sequence timelapse mov from QuickTime Pro.
    Is this possible? Even if you just point me in the right direction I would be very grateful! I've been going around in circles and still haven't found out if I can do this.
    Thanks again,
    James AKA MrBriz

    Eric wrote:
    1) He said libreoffice is the new name for openoffice, which isn't true.
    2) Openoffice may be owned by Oracle, but it's still open source (which is why so many other office suites are based on the openoffice code, e.g., NeoOffice and LibreOffice, as well as others.)
    If you're going to say "libreoffice, formally openoffice" you have to back that up with some truth.
    Thanks Eric.
    My mistake. The last time I checked the opensource world was awash with statements to the effect that OO was dead. I then discovered that LibreOffice was picking up where OO left off.
    I now see that OO is still going. So I guess people were making a fuss about nothing when the Oracle / Sun thing happened.
    Either way, Apple Pages lacks the Navigation feature found in OO/LO, and Word. And that is what I'd like to find a way to work around.
    I had to drop word on this kind of document because its way of handling numbered lists within paragraph styles was driving me nuts, as it had done for the person I was assisting, and has done for many other people I see have posted issues about that as far back as 2003 or earlier. So I switched my friends document over to Pages, as that's installed by default on her MBP. But she really wanted the document map functionality that was in Word. OO/LO was my next option, and the one I am running with for now.

  • Create transparency image from shape

    Hi,
    I'd like to create the application that create the transparency image from drawing data. the code is as follows.
    BufferedImage img = new BufferedImage(350,350,BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = img.createGraphics();
    GeneralPath gp = new GeneralPath(GeneralPath.WIND_NON_ZERO);
    gp.moveTo(100,100);     gp.lineTo(100,200);
    gp.lineTo(200,200);     gp.lineTo(200,100); gp.closePath();
    g2.setPaint(Color.yellow);
    g2.fill(gp);
    g2.setStroke(new BasicStroke(2));
    g2.setPaint(Color.red);
    g2.draw(gp);
    File outFile = new File("outimg.png");
    ImageIO.write(img,"png",outFile);
    I can create the image from such code, but the image is not transparent since the background is all black. What additional coding I need to make it transparent?
    Thanks,
    Sanphet

    1. use a PixelGrabber to convert the image into a pixel array
    2. (assuming pixel array called pixelArray) :
    if (pixelArray[loopCounter] == 0xFFFFFFFF) { //assuming the black your seeing is not a fully transparent surface
        pixelArray[loopCounter] = pixelArray[loopCounter] & 0x00FFFFFF; //sets alpha channel for all black area to 0, thus making it fully transparent
    }3. recreate an Image using MemoryImageSource
    I'm sure there is a quicker solution using some built in java functions...but hey, I dont' know it!! :)
    Here's a sample class that utilizes these techniques:
    * To start the process, click on the window
    * Restriction (next version upgrade) :
    *     - firstImage must be larger
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class AdditiveBlendingTest extends javax.swing.JFrame implements MouseListener, ActionListener, WindowListener {
        static final int ALPHA = 0xFF000000; // alpha mask
        static final int MASK7Bit = 0xFEFEFF; // mask for additive/subtractive shading
        static final int ZERO_ALPHA = 0x00FFFFFF; //zero's alpha channel, i.e. fully transparent
        private Image firstImage, secondImage, finalImage; //2 loades image + painted blended image
        private int firstImageWidth, firstImageHeight, secondImageWidth, secondImageHeight;
        private int xInsets, yInsets; //insets of JFrame
        //cliping area of drawing, and size of JFrame
        private int clipX = 400;
        private int clipY = 400;
        //arrays representing 2 loades image + painted blended image
        private int[] firstImageArray;
        private int [] secondImageArray;
        private int [] finalImageArray;
        //system timer, used to cause repaints
        private Timer mainTimer;
        //used for double buffering and drawing the components
        private Graphics imageGraphicalSurface;
        private Image doubleBufferImage;
        public AdditiveBlendingTest() {
            firstImage = Toolkit.getDefaultToolkit().getImage("Image1.jpg");
            secondImage = Toolkit.getDefaultToolkit().getImage("Image2.gif");
         //used to load image, MediaTracker process will not complete till the image is fully loaded
            MediaTracker tracker = new MediaTracker(this);
            tracker.addImage(firstImage,1);
         try {
             if(!tracker.waitForID(1,10000)) {
              System.out.println("Image1.jpg Load error");
              System.exit(1);
         } catch (InterruptedException e) {
             System.out.println(e);
         tracker = new MediaTracker(this);
         tracker.addImage(secondImage,1);
         try {
             if(!tracker.waitForID(1,10000)) {
              System.out.println("Image2.gif Load error");
              System.exit(1);
         } catch (InterruptedException e) {
             System.out.println(e);
         //calculate dimensions
         secondImageWidth = secondImage.getWidth(this);
         secondImageHeight = secondImage.getHeight(this);
         firstImageWidth = firstImage.getWidth(this);
         firstImageHeight = firstImage.getHeight(this);
         //creates image arrays
         firstImageArray = new int[firstImageWidth * firstImageHeight];
            secondImageArray = new int[secondImageWidth * secondImageHeight];
         //embeded if statements will be fully implemented in next version
         finalImageArray = new int[((secondImageWidth >= firstImageWidth) ? secondImageWidth : firstImageWidth) *
                 ((secondImageHeight >= firstImageHeight) ? secondImageHeight : firstImageHeight)];
         //PixelGrabber is used to created an integer array from an image, the values of each element of the array
         //represent an individual pixel.  FORMAT = 0xFFFFFFFF, with the channels (FROM MSB) Alpha, Red, Green, Blue
         //each taking up 8 bits (i.e. 256 possible values for each)
         try {
             PixelGrabber pgObj = new PixelGrabber(firstImage,0,0,firstImageWidth,firstImageHeight,firstImageArray,0,firstImageWidth);
             if(pgObj.grabPixels() && ((pgObj.getStatus() & ImageObserver.ALLBITS) != 0)){
         } catch (InterruptedException e) {
             System.out.println(e);
         try {
             PixelGrabber pgObj = new PixelGrabber(secondImage,0,0,secondImageWidth,secondImageHeight,secondImageArray,0,secondImageWidth);
             if (pgObj.grabPixels() && ((pgObj.getStatus() & ImageObserver.ALLBITS) !=0)) {
         } catch (InterruptedException e) {
             System.out.println(e);
         //adds the first images' values to the final painted image.  This is the only time the first image is involved
         //with the blend
         for(int cnt = 0,large = 0; cnt < (secondImageWidth*secondImageHeight);cnt++, large++){
             if (cnt % 300 == 0 && cnt !=0){
              large += (firstImageWidth - secondImageWidth);
             finalImageArray[cnt] = AdditiveBlendingTest.ALPHA + (AdditiveBlendingTest.ZERO_ALPHA & firstImageArray[large]) ;
         //final initializing
         this.setSize(clipX,clipY);
         this.enable();
         this.setVisible(true);
         yInsets = this.getInsets().top;
         xInsets = this.getInsets().left;
         this.addMouseListener(this);
         this.addWindowListener(this);
         doubleBufferImage = createImage(firstImageWidth,firstImageHeight);
         imageGraphicalSurface = doubleBufferImage.getGraphics();
        public void mouseEntered(MouseEvent e) {}
        public void mouseExited(MouseEvent e) {}
        public void mousePressed(MouseEvent e) {}
        public void mouseReleased(MouseEvent e) {}
        public void windowActivated (WindowEvent e) {}
        public void windowDeiconified (WindowEvent e) {}
        public void windowIconified (WindowEvent e) {}
        public void windowDeactivated (WindowEvent e) {}
        public void windowOpened (WindowEvent e) {}
        public void windowClosed (WindowEvent e) {}
        //when "x" in right hand corner clicked
        public void windowClosing(WindowEvent e) {
         System.exit(0);
        //used to progress the animation sequence (fires every 50 ms)
        public void actionPerformed (ActionEvent e ) {
         blend();
         repaint();
        //begins animation process and set's up timer to continue
        public void mouseClicked(MouseEvent e) {
         blend();
         mainTimer = new Timer(50,this);
         mainTimer.start();
         repaint();
         * workhorse of application, does the additive blending
        private void blend () {
         int pixel;
         int overflow;
         for (int cnt = 0,large = 0; cnt < (secondImageWidth*secondImageHeight);cnt++, large++) {
             if (cnt % 300 == 0 && cnt !=0){
              large += (firstImageWidth - secondImageWidth);
             //algorithm for blending was created by another user, will give reference when I find
             pixel = ( secondImageArray[cnt] & MASK7Bit ) + ( finalImageArray[cnt] & MASK7Bit );
             overflow = pixel & 0x1010100;
             overflow -= overflow >> 8;
             finalImageArray[cnt] = AdditiveBlendingTest.ALPHA|overflow|pixel ;
         //creates Image to be drawn to the screen
         finalImage = createImage(new MemoryImageSource(secondImageWidth, secondImageHeight, finalImageArray,
              0, secondImageWidth));
        //update overidden to eliminate the clearscreen call.  Speeds up overall paint process
        public void update(Graphics g) {
         paint(imageGraphicalSurface);
         g.drawImage(doubleBufferImage,xInsets,yInsets,this);
         g.dispose();
        //only begins painting blended image after it is created (to prevent NullPointer)
        public void paint(Graphics g) {
         if (finalImage == null){
             //setClip call not required, just added to facilitate future changes
             g.setClip(0,0,clipX,clipY);
             g.drawImage(firstImage,0,0,this);
             g.drawImage(secondImage,0,0,this);
         } else {
             g.setClip(0,0,clipX,clipY);
             g.drawImage(finalImage,0,0,this);
        public static void main( String[] args ) {
         AdditiveBlendingTest additiveAnimation = new AdditiveBlendingTest();
         additiveAnimation.setVisible(true);
         additiveAnimation.repaint();

  • How do I Create interactive images to be used in another website?

    Our office is contracted with a simple website company, so from the begining the framework is there. I want to add an interactive map that has each county hyperlinked to information about that area. I was told that Dreamweaver is the program I would need in order to create it.
    So, I have the program now but every tutorial I read is about making your own website in dreamweaver and I can't find anything about how to create the image to upload into a different website.
    Anyone know how to do this????
    Thank you!

    This helps, thanks. I have the content on the web page (where the hyperlinks will attach to), I have the image of the map, and I am making the shapes for the hotspots, just not how to get it all to link up.
    Also, when I saved a trial (just to make sure it would all work) it doesn't successfully upload as an image onto the website, just a little box with a red X. Any more thoughts anyone? 

  • Creating an image with a Cloud Effect

    Can someone please tell me how I can create an image with a
    cloud effect like the photo located at the link below:
    http://www.arizonamedicalclinic.com/
    Thanks in advance for all of your help.

    Nessa wrote:
    > Can someone please tell me how I can create an image
    with a cloud effect like the photo located at the link below:
    >
    >
    http://www.arizonamedicalclinic.com/
    >
    > Thanks in advance for all of your help.
    Draw a cloud shape. Fill it with white and add a black inner
    glow.
    Position the cloud shape over the photo. Press Shift and
    select both the
    cloud shape and the image. Choose Modify > Mask > Group
    as Mask.
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    Design Aid Kits:
    http://www.webdevbiz.com/pwf/index.cfm

  • How to create a tomato shape pie chart?

    Hi,
    I google around to find a way to create a custom-shape pei chart (a tomato with 3 percentage numbers in it, say 25% 25% and 50%). But I always got stuck when trying to creat the mask, which i have no clue....
    Could some computer expert here help me to understand it?
    thanks
    sz

    arabidopsis10 wrote:
    Hi,
    I google around to find a way to create a custom-shape pei chart (a tomato with 3 percentage numbers in it, say 25% 25% and 50%). But I always got stuck when trying to creat the mask, which i have no clue....
    Could some computer expert here help me to understand it?
    thanks
    Hi sz,
    Although the Numbers User Guide (which you should find in the iWork 08 folder in your Applications folder) does say, "You can also drag an image to mask a shape with an image," I didn't have any success when trying to do so.
    The best I was able to do was to place the pie chart in front of or behind a tomato image, then set the transparency of whichever was in front to allow the other to show through. Although I'm not really happy with the result, here's a sample, with the chart in front. The chart's Fill has been set to None, and the opacity of the 'slice' colours has been set to 30%. The colours used for the slices are shown in the chart's legend.
    You might achieve an improved result by experimenting with the colours and opacity settings.
    Regards,
    Barry

  • Help Creating Starburst With Randomized Rays

    Check out this background image below (or view larger size at this link:http://i3.campaignmonitor.com/themes/site_themes/default/img/bg_site-home.jpg) . I would like to know how they created the "randomized" effect of the rays behind the gray box.   I already know how to make your standard starburst using Abealls auto shape extension, but that creates uniform rays.  The rays of light in the below example are seemingly random.  I know this can be easily done in Photoshop using filters, but can it not be easily done in Fireworks?

    Here's my try ( btw, welcome to the forums! ) and even if it is not random, it is close to the desired effect.
    Save the file to your computer and de-construct. I have added a Noise filter effect, a bit of Gaussian blur and there is a half-transparent rectangle on top of the rays, with gradient (rays use gradient, too).
    Now, I suppose you could combine two Sunrays autoshapes, slightly shift one of them, make both half-transparent, and apply a bit different effects to both. You could also create a complex vector mask on top of the sunrays, with a complex gradient with varaible areas of half-transparency, and this could help create this "random effect" that you are going after...
    I hope that some wiser than me Fireworks guru will be able to help you more...
    Message was edited by: Michel (two more variants added)

  • Help displaying an image using the canvas!!!!!!!!

    Hey guys
    I don't know whether I am not grasping some concepts well.I have been going mad trying to get the code working
    Here is the code
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    * @author Administrator
    * @version
    public class MyMIDlet extends javax.microedition.midlet.MIDlet implements CommandListener{
    private Display display;
    private MyCanvas canvas;
    private Command exitcommand = new Command("Exit",Command.SCREEN,1);
    private Image source;
    public MyMIDlet() {
    protected void startApp() throws MIDletStateChangeException{
    if (display == null){
    initMIDlet();
    protected void pauseApp() {
    protected void destroyApp(boolean unconditional)throws MIDletStateChangeException {
    exitMIDlet();
    public void commandAction(Command c, Displayable d) {
    if (c == exitcommand){
    exitMIDlet();
    protected void initMIDlet() {
    display = Display.getDisplay(this);
    canvas = new MyCanvas(this);
    System.err.println("Canvas instiated succesfully");
    canvas.addCommand(exitcommand);
    canvas.setCommandListener(this);
    display.setCurrent(canvas);
    public void exitMIDlet() {
    notifyDestroyed();
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import java.io.*;
    public class MyCanvas extends Canvas implements Runnable {
    private MIDlet midlet;
    private Image offscreen;
    private Image currentimage;
    private Graphics g;
    //MID profile application
    /** Creates a new instance of MyCanvas */
    public MyCanvas(MIDlet midlet) {
    this.midlet = midlet;
    try{
    currentimage = Image.createImage("/bird0.png");
    }catch(IOException e){
    System.err.println(e.getMessage());
    if (currentimage!= null){
    System.err.println("Image create successfully");
    }else{
    System.err.println("Image not created");
    try{
    Thread t = new Thread(this);
    t.start();
    }catch(Execption e){}
    protected void paint(Graphics g){
    Graphics saved = g;
    int x = getWidth();
    int y = getHeight();
    g.setColor(255,255,255);
    g.drawImage(currentimage,x,y,g.TOP|g.VCENTER);
    public void run() {
    repaint();
    I know for a fact that the Canvas class 's paint method is called by the system and not the application. This poses a problem for me because I am not sure how to pass the image to the piant method, so that it can be painted.
    When I run the program(using J2ME wtk04), this is the outcome.
    Image created succesfully
    Canvas instiatiated successfully
    null
    Here are my questions
    1) when is the paint method precisely called by the system?after a reference to the canvas class is created?
    2) is it wise to create the image when instiating the canvas class?( initially created the image using a separate thread)-when sould the image be created?
    3)how to let the application know when to use the image when painting the display area?
    I am just trying the logistics here. It is very crucial to me to understand the bolts of this as the core f my project fouses on the man machine interface development.(For the project, the cilent application is quering for the map using HTTP)
    I use a png file of size 161 bytes. Is that too big for testing purposes.
    I would all the help that I can get. thanks in advance

    1) when is the paint method precisely called by the system?after a reference to the canvas class is created?
    After the canvas is set as the current display, and after that, after the repaint() is called.
    2) is it wise to create the image when instiating the canvas class?( initially created the image using a separate thread)-when sould the image be created?
    It's better to create the image in the very begining of the program e.g. in the midlet initialization. You can call the created image as often as you like later on
    3)how to let the application know when to use the image when painting the display area?
    you have to tell it :))
    you can use if-then, switch, or anything else
    and you can use clipping too

  • 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.

  • Unable to create Disc Image from DVD

    I get the following error when trying to make a copy of a family wedding DVD. I'm using Disc Utility and creating the image as a DVD/CD master (.cdr) file. It gets to about 3/4 of the way and then gives the following error.
    The internal drive is a PIONEER DVD-RW DVR-K05
    Sep 10 22:13:24: Disk Utility started.
    Creating Image “Wedding of xxx & xxx.cdr”
    Reading VOLUME_IDENTIFIER (Apple_UDF : 0)...
    Unable to create “Wedding of Sarah & Federico.cdr” - Input/output error.
    I've tried twice now and the same error. Looks like I might have to use Toast/Popcorn etc?
    Thanks,
    Darren
    iMac G5 2.1GHz 1Gb RAM 260Gb HDD   Mac OS X (10.4.7)  

    I do not know what that error means. However, if you open up the Disk Utility & go into it's Help Menu & in the search field type duplicating a CD or DVD. There you will find detailed instructions on how to create a disc image from a DVD.
    Good possibility your answer may be found there and/or there may have been something you missed in creating a disc image.
    Good luck.

Maybe you are looking for