1. HELP: WHAT AM I DOING WRONG

------=_NextPart_000_0008_01BDEA10.387044E0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi everyone
have been trying to do a include thingy have copied the example from the =
library but dont work keeps saying x is not declared
this is what i have been doing
include image.e

x =3D read_bitmap(st)

x =3D read_bitmap("c:\\windows\\arcade.bmp")

could someone please post an example for this please

thanks

brent


------=_NextPart_000_0008_01BDEA10.387044E0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>hi everyone</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>have been trying to do a include =
thingy have=20
copied the example from the library but dont work keeps saying x is not=20
declared</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>this is what i have been =
doing</FONT></DIV>
<DIV><FONT size=3D2>
<P>include image.e</P>
<P>x =3D read_bitmap(st)</P>
<P>x =3D read_bitmap(&quot;c:\\windows\\arcade.bmp&quot;)</P>
<P><U><FONT color=3D#800080>could someone please post an example for =
this=20
please</FONT></U></P>
<P><U><FONT color=3D#800080>thanks</FONT></U></P>
<P><U><FONT =

------=_NextPart_000_0008_01BDEA10.387044E0--

new topic     » topic index » view message » categorize

2. Re: HELP: WHAT AM I DOING WRONG

include graphics.e
include image.e
object x,pal,img
integer mode
x=read_bitmap("c:\\windows\\arcade.bmp")
pal=x[1]
pal=pal/4
img=x[4]
if length(pal)>16 then
    mode=257
else
    mode=18
end if
if graphics_mode(mode) then
end if
all_palette(pal)
display_image({0,0},img)
if gets(0) then
end if
if graphics_mode(-1)
end if
clear_screen()

-------------------------------------
When it comes to programming languages, Euphoria is a cut above -
matt1278 at juno.com and matt1421 at juno.com(and soon to be
irisnmatt at prodigy.net. Then again, maybe not) Euphoria programmer

___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

new topic     » goto parent     » topic index » view message » categorize

3. Re: HELP: WHAT AM I DOING WRONG

In Euphoria, all variables must be declared before they are used. You need
to modify it to this:

include image.e
sequence x, st -- You must declare x and st
st =3D "some bitmap file"
x =3D read_bitmap(st)
x =3D read_bitmap("c:\\windows\\arcade.bmp")

Jeffrey Fielding
JJProg at cyberbury.net

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu