Re: Error! Line 001010101 is incorrect!

new topic     » goto parent     » topic index » view thread      » older message » newer message

------=_NextPart_000_0022_01C011B8.FA456380
        charset="iso-8859-1"

-----Original Message-----



  I'm having some errors that I can't cure: Here's the lines:

  display_image({1,1}, hpic[2])
    h = save_image({1,1}, {35,35})
    c = save_image({30,1},{100,100})

  display_image({24,1}, hhpic[2])
  hh = save_image({24,1}, {35,35})

---- here is the problem ---
save_image() must specify the TOP-LEFT hand and the BOTTOM-RIGHT hand
corners of the image.
By using {48,1} as the TOP and {35,35} as the bottom, it confuses save_image
because 48 > 35!
I discovered this by looking at the image.e file and seeing how save_image
was implemented. It calls
get_pixel() using a Width parameter which is computed as (bottom_right -
top_left + 1). Which in your
case is (35 - 48 + 1) ==> -12
  display_image({48,1}, hhhpic[2])
  hhh = save_image({48,1}, {35,35})

  display_image({72,1}, hhhhpic[2])
  hhhh = save_image({72,1}, {35,35})

  display_image({100,1}, lhpic[2])
  lh = save_image({100,1}, {35,35})

  Here's the error:

  D:\EUPHORIA\include\image.e:240 in function save_image()
  3rd argument of get_pixel() must be   >=0

  I didn't use any negative (or 0) arguements.....

  Please help me out! How can I fix this?

  -Thomas

-----
cheers,
Derek Parnell



------=_NextPart_000_0022_01C011B8.FA456380
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3105.105" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial><FONT face=3D"Times New Roman"><FONT =
color=3D#0000ff=20
size=3D2>-----Original Message-----<BR></FONT></DIV><BR>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px"></FONT>
  <DIV><FONT color=3D#0000ff size=3D2>I'm having some errors that I =
can't cure:=20
  Here's the lines:</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=3D#0000ff size=3D2>display_image({1,1}, =
hpic[2])<BR>&nbsp; h =3D=20
  save_image({1,1}, {35,35})<BR>&nbsp; c =3D=20
  save_image({30,1},{100,100})</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=3D#0000ff size=3D2>display_image({24,1}, =
hhpic[2])<BR>hh =3D=20
  save_image({24,1}, {35,35})</FONT></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE>
<DIV><FONT size=3D2><SPAN class=3D315585301-29082000>---- here is the =
problem ---=20
</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D315585301-29082000>save_image() must =
specify the=20
TOP-LEFT hand and the BOTTOM-RIGHT hand corners of the=20
image.</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D315585301-29082000>By using {48,1} as =
the TOP and=20
{35,35} as the bottom, it confuses save_image because 48 &gt;=20
35!</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D315585301-29082000>I discovered this =
by looking at=20
the image.e file and seeing how save_image was implemented. It=20
calls</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D315585301-29082000>get_pixel() using a =
Width=20
parameter which is computed as (bottom_right - top_left + 1). Which in=20
your</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D315585301-29082000>case is (35 - 48 + =
1) =3D=3D&gt;=20
-12</SPAN></FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px">
  <DIV><FONT color=3D#0000ff size=3D2>display_image({48,1}, =
hhhpic[2])<BR>hhh =3D=20
  save_image({48,1}, {35,35})</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=3D#0000ff size=3D2>display_image({72,1}, =
hhhhpic[2])<BR>hhhh =3D=20
  save_image({72,1}, {35,35})</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=3D#0000ff size=3D2>display_image({100,1}, =
lhpic[2])<BR>lh =3D=20
  save_image({100,1}, {35,35})<BR></FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>Here's the error:</FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>&nbsp;</FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>D:\EUPHORIA\include\image.e:240 in =
function=20
  save_image()</FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>3rd argument of get_pixel() must=20
  be&nbsp;&nbsp; &gt;=3D0 </FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>&nbsp;</FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>I didn't use any negative (or 0)=20
  arguements.....</FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>&nbsp;</FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>Please help me out! How can I fix=20
  this?</FONT></DIV>
  <DIV><FONT color=3D#0000ff size=3D2>&nbsp;</FONT></DIV>
  <DIV><FONT color=3D#0000ff =
size=3D2>-Thomas</FONT></DIV></BLOCKQUOTE></FONT>
<DIV>&nbsp;</DIV>
<P><FONT size=3D2>-----<BR>cheers,<BR>Derek Parnell<BR></FONT></P>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px">
  <DIV><FONT face=3DArial =

------=_NextPart_000_0022_01C011B8.FA456380--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu