in

PainterFactory.com

Using Corel to Create 2D Images In Java's Greenfoot Program

Last post 07-02-2009 7:36 PM by Michael36175. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-27-2009 9:55 PM

    Using Corel to Create 2D Images In Java's Greenfoot Program

    Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing {mso-style-priority:1; mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

    Hello, I am currently using a 30 day free trial of Corel Painter 11 and I am having trouble accomplishing something. I am currently working with a program called Java/Greenfoot. It's a learning tool for programming beginners. I have created a figure on a layer, a representation of a video game character, using Painter 11. Then I saved the figure as a PNG file. Then I uploaded the figure into greenfoot, gave the object/figure some simple commands and ran the program. Everything went great except for the white background behind my character remained as he moved across the 2D world I had created for him using "Paint." Understand, there is a 2D image of a world on top of which the figure is moving when the game/program runs. What I want is to have the white background of my figure, that is the canvas that I didn't paint/draw on, to be invisible when the program is running. In short, I want the figure to move across the screen without the white background, so that only the figure I drew is moving across the landscape of the world. Is it possible to save a drawing made in Painter 11 without the unused canvas? You can go here: (www.greenfootgallery.org) to see the program I am using and what I am trying to accomplish. You will notice most of the games displayed on the gallery have 2D figures moving across their worlds without a white background, I just want to understand how they did that, if such images can be created with Painter 11 or not? I have submitted this question to the Greenfoot group site on Google but I figure it couldn't hurt to post here also, maybe the Corel and Java software just aren't compatible enough to do this. I tried creating an invisible background as described in this "Canvas + Transparency" post made by TomT on this 1/13/2008:

     

    "Three things to think about,

    First, Don't paint on the canvas, create a new layer from the git go and start painting from there.

    Second, Raise the canvas to a layer and select Gel as the Layer's mode in the Layers Palette.  White areas become transparent in this mode. To make the canvas image a layer, select all (Ctrl/Command>A) and click on it with the Layer's adjuster tool.

    The third option is to use the Magic Wand tool, click on a white area and go to the Selection menu on the toolbar and click Invert.  This will make anything not white (Or your Paper color if you selected  another color for your Paper) a selection.  Click on this with the Layer adjuster tool and your painted areas will now become a layer. 

    The second and third options are not ideal, but they do work.  You'll have to experiment with them yourself to see if they fit your needs.  Far and away your best choice is the first.  Just make sure the Preserve Transparency box is un-checked in the Layers Palette."

     

    ...but when I saved the figure as a PGN file with Gel chosen and then tried to upload the image to Java's Greenfoot program I got an error message. And what does it mean to make a canvas image a layer. In Painter, I drew my character on Layer 1, the canvas itself was blank, just white, then when I saved my completed document the canvas and layer merged. Is there some way it can merge without the white background? Corel is the first Painting Program I have tried, before I was just using "Paint" so if you want to take a shot at answering this question please be as descriptive as possible. I am also using a HP computer with Windows Vista 64 bit operating system, in case that's relevant. Thank you for your time.

  • 06-29-2009 8:30 AM In reply to

    Re: Using Corel to Create 2D Images In Java's Greenfoot Program

    Before you save as PNG, try clicking the "Eye" icon on the Canvas. This will hide the canvas and your image will be transparent as you expect it (no white background) when you also check "Save Alpha" (should be on by default) in the Save As dialog box.

  • 07-02-2009 7:36 PM In reply to

    Re: Using Corel to Create 2D Images In Java's Greenfoot Program

    Thanks philippec for your instructions. I finally had time to try them now that the July 4th weekend has begone, the figure I created displayed with an invisible/transparent background once I closed the "Eye" icon. It was great, Corel will work for what I'm trying to do. I'm greatful for your quick response and good advice, thank you.

Page 1 of 1 (3 items)
© Corel Corporation. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms and Conditions.
 
Banner Artwork by Andrew Jones.