fataly Posted November 4, 2007 Share Posted November 4, 2007 i need scan large area. i can use if pixelgetcolor(x,y) = oxfffff then XXXXX but its scan only 1 pixel. how i can make it scan like 50x50 pixel areas? Link to comment Share on other sites More sharing options...
Jex Posted November 4, 2007 Share Posted November 4, 2007 Use PixelSearch ? PixelSearch(1,1,50,50, Color) My scripts : Immediate Window , My Web Browser , Travian , Text Effect , Characters & Words per minute or second , Image Editor (ImageMagick) , Matrix style background effect ( Screensaver ) , Mail Sender , Protectlinks decoder and Rapidshare links checker , Fonts Fetcher , Region determine , Compare pictures , Gradient color box , Mouse Coordinates, Colors, Pixel Search things , Encrypt/Decrypt and embeding file in jpeg thing , Hard disk space monitor , Reflex game , Multiplayer Tic Tac Toe , WLM ( MSN ) personal message changer Link to comment Share on other sites More sharing options...
fataly Posted November 4, 2007 Author Share Posted November 4, 2007 PixelSearch(1,1,50,50, Color) these 50,50 means areas? and 1,1 y and x axels? Link to comment Share on other sites More sharing options...
Jex Posted November 4, 2007 Share Posted November 4, 2007 (edited) Searches a rectangle of pixels for the pixel color provided. PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] ) left: left coordinate of rectangle. top: top coordinate of rectangle. right: right coordinate of rectangle. bottom: bottom coordinate of rectangle. colour: Colour value of pixel to find (in decimal or hex). shade-variation [optional]: A number between 0 and 255 to indicate the allowed number of shades of variation of the red, green, and blue components of the colour. Default is 0 (exact match). step [optional]: Instead of searching each pixel use a value larger than 1 to skip pixels (for speed). E.g. A value of 2 will only check every other pixel. Default is 1. Edited November 4, 2007 by Jex My scripts : Immediate Window , My Web Browser , Travian , Text Effect , Characters & Words per minute or second , Image Editor (ImageMagick) , Matrix style background effect ( Screensaver ) , Mail Sender , Protectlinks decoder and Rapidshare links checker , Fonts Fetcher , Region determine , Compare pictures , Gradient color box , Mouse Coordinates, Colors, Pixel Search things , Encrypt/Decrypt and embeding file in jpeg thing , Hard disk space monitor , Reflex game , Multiplayer Tic Tac Toe , WLM ( MSN ) personal message changer Link to comment Share on other sites More sharing options...
TomZ Posted November 4, 2007 Share Posted November 4, 2007 (edited) Func _AreaGetColors($top, $left, $bottom, $right) Local $result[$bottom-$top+1][$right-$left+1], $x, $y For $x = $top to $bottom For $y = $left to $right $result[$x-$top][$y-$left] = PixelGetColor($x, $y) Next Next Return $result EndFuncoÝ÷ Øù^jǧ¢×êÞÉèr)àûazö¥¹ëêâHMú¶e·Múnm¢j+Ó~¥yûe·Mú®(!·*.ßÙeëZê뢴áÇîËb¢|"[Z楢ڶ)ö¥j¸j·Ë¬yÞ;ï}fYb±ç(Û¢¶µÓn1ï¯æÅ©©êºÇºÚ"µÍÚ[ÛYH Ð^K]LÉÝÂÐ^QÜ^JÐXQÙ]ÛÛÜÊ L L K ][Ý×ÐXQÙ]ÛÛÜÈØ[I][ÝÊ Edited November 4, 2007 by TomZ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now