Explicit 213 Share Posted February 17, 2015 I know it's a Java form but I figured I'd post here anyway since it's a general programming support forum (cba to format): Basically it doesn't detect any images (I know I'm not using tolerance atm, shouldn't have to since I'm directly cropping out pieces of the image for testing). Anyone see something that could be wrong? Link to comment Share on other sites More sharing options...
Polish Civil 90 Share Posted February 17, 2015 <oght be dumb but um. "Format24bppRgb" Shouldn't be RGB ([0],[1],[2]) instead BGR, runescape uses bgr lele Link to comment Share on other sites More sharing options...
Explicit 213 Author Share Posted February 17, 2015 <oght be dumb but um. "Format24bppRgb" Shouldn't be RGB ([0],[1],[2]) instead BGR, runescape uses bgr lele This isn't for RuneScape xD and the bytes go bgr in the bitmap data scan. Link to comment Share on other sites More sharing options...
Polish Civil 90 Share Posted February 17, 2015 This isn't for RuneScape xD and the bytes go bgr in the bitmap data scan. U sure dey go? well then idk code isnt read friendly XD btw array_pointer += ToSearchPadding; lololol Link to comment Share on other sites More sharing options...
Explicit 213 Author Share Posted February 17, 2015 U sure dey go? well then idk code isnt read friendly XD btw array_pointer += ToSearchPadding; lololol Yeah I've modded it like 8 times because I keep changing things. I'll optimize once it works. Here's BGR description from CodeProject: A quirk I noticed from the first beta of GDI+ continues to this day, namely requesting a 24bitRGB image will return a 24bitBGR image. BGR ( that is, pixels are stored as blue, green, red values ) is the way Windows stored things internally, but I'm sure more than a few people will get a surprise when they first use this function and realise they are not getting what they asked for. And I add to the pointer to set the 0 index to the start of the new row. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.