MaxCoderz

for your 1 bit pleasure!

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Fri 29 Sep, 2006 5:01 pm 
Offline
New Member

Joined: Mon 06 Feb, 2006 5:18 pm
Posts: 42
Hi, is it possible that there is a problem with this function
usage: real(12,Shape_Type,x1,y1,x2,y2,DrawShape_UpdateLCD
If i choose the drawshape 5 = DrawRectOutlineBlackFillWhite
I see the rectangle, outline black; but it isn't filled with white, or i might be using it wrong ;)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri 29 Sep, 2006 5:44 pm 
Offline
Calc King

Joined: Sat 05 Aug, 2006 7:22 am
Posts: 1513
isnt it supposed to do that?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri 29 Sep, 2006 6:12 pm 
Offline
New Member

Joined: Mon 06 Feb, 2006 5:18 pm
Posts: 42
If i hear the name DrawRectOutlineBlackFillWhite
i think of a rectangle, outline black, filled white. But the box doesnt get white, you see the background


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri 29 Sep, 2006 6:16 pm 
Offline
Calc King

Joined: Sat 05 Aug, 2006 7:22 am
Posts: 1513
i never had any problems with it though.. are you sure you're drawing it Over something adn not Under it?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri 29 Sep, 2006 6:21 pm 
Offline
New Member

Joined: Mon 06 Feb, 2006 5:18 pm
Posts: 42
yes, i draw it over something, i tried several things. To make sure i was drawing over something, i putted a pauze after the drawing command, and still i see the background


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat 30 Sep, 2006 8:13 am 
Offline
Calc King

Joined: Sat 05 Aug, 2006 7:22 am
Posts: 1513
then maybe that's the whole point of it..
you can draw a black rect and invert everything but the edge.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat 30 Sep, 2006 9:47 am 
Offline
New Member

Joined: Mon 06 Feb, 2006 5:18 pm
Posts: 42
yea, but that's kinda slow in basic


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat 30 Sep, 2006 12:36 pm 
Offline
New Member

Joined: Mon 06 Feb, 2006 5:18 pm
Posts: 42
Just try this, make a program in basic with this code (make sure xlib is installed ;))
Code:
ClrDraw
For(x,0,94)
For(y,0,62)
Pxl-On(y,x)
End
End
real(12,5,0,50,94,63,1

And see what happens


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat 30 Sep, 2006 1:05 pm 
Offline
Calc King

Joined: Sat 05 Aug, 2006 7:22 am
Posts: 1513
why dont you use Shade(-10,10,-10,10, whatever it was?
or real(12, whatever it is
to make it black first, or atleast fill with lines..

but, as i said, you can use 2 xLIB commands to do the trick, right?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat 30 Sep, 2006 4:31 pm 
Offline
Calc King

Joined: Sun 27 Mar, 2005 4:06 am
Posts: 2195
Location: sleeping
Why don't you just draw a black filled rect and then XOR a 1-pixel smaller one on, as was suggested. You won't notice any speed difference.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat 30 Sep, 2006 7:53 pm 
Offline
New Member

Joined: Mon 06 Feb, 2006 5:18 pm
Posts: 42
ok will try that, thank you


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun 01 Oct, 2006 6:26 am 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 4094
Location: I cant seem to get out of this cryogenic chamber!
Ummm, maybe there is a problem with it, ill take a look ... o_o.

_________________
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue 10 Oct, 2006 6:07 pm 
Offline
Calc King

Joined: Sat 05 Aug, 2006 7:22 am
Posts: 1513
I thought it would be funny to mess around with it but I couldn't reproduce the bug.
(however, I noticed (again) that inverting a not-filled rectangle omits its corners)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB ® Forum Software © phpBB Group | DVGFX2 by: Matt