Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Receiving a pixel
Page 1 of 1

PostPosted: Sat Nov 05, 2005 8:10 am
by fabian1131
Hi,
is there an easy way to find out if the use has drawn on a specific pixel?
like that:
if(pixel(10,50))=true)...

thanks in advance

++ Vielen Dank dass Sie meinen Post lesen++
++ Thank you for reading my post ++
++ Merci beaucoup pour lire ma poste ++
++ Grazie per lettura del mio messaggio ++

PostPosted: Tue Nov 08, 2005 4:27 am
by dewey
There isn't currently a method for reading a pixel. Can you tell me how you would use this method if it were there? Thanks

PostPosted: Tue Nov 08, 2005 7:32 am
by fabian1131
Hi,
thank you for your reply!
I would use it like that:
If the user has drawn on the screen (with the d.line(x,y,x,y);) then i would check how many percent of the screen the user has covered with his drawing. isn't that possible? it shouldn't be too hard.

thank you

fabian

++ Vielen Dank dass Sie meinen Post lesen++
++ Thank you for reading my post ++
++ Merci beaucoup pour lire ma poste ++
++ Grazie per lettura del mio messaggio ++

PostPosted: Tue Nov 08, 2005 3:49 pm
by Rudi
Oh yes, reading pixel from screen where very nice :)

int color_index;
draw.getPixel(x,y,&color_index);
draw.getPixelFromBuffer(x,y,&color_index);

Whats also nice?

getting the buffer-mem of screen :)

void *screen_buffer;
draw.copyForm(BlaForm);
draw.getBuffer(screen_buffer);
do_nice_things_with_my_screen();
draw.release();

hihi - by getting the bufferspace, i can do everything, like rotating, shifting etc ...


Greets to usa and south africa from bavaria (barbaria) :)
rudi

PostPosted: Wed Nov 09, 2005 7:01 am
by fabian1131
Rudi, good idea that would be really great!
greeting back to bavaria, (i was born in alt?ɬ?tting). i'm a real bavarian, just living in south africa for some years. ;)

++ Vielen Dank dass Sie meinen Post lesen++
++ Thank you for reading my post ++
++ Merci beaucoup pour lire ma poste ++
++ Grazie per lettura del mio messaggio ++

PostPosted: Mon Jan 09, 2006 11:39 pm
by Aqua32
Count me in! I would love to be able to *Get* a pixel.. That would open up the possibilities for a lot of things!!