Andraax Posted June 2, 2006 Posted June 2, 2006 Ok, so I am trying to make a small bmp analyzer for personal use.... basicaly I want to load a bitmap into memory, figger out dimentions and then run some idiotic experiments on it, and see what results I will get. I am just trying to figger out how to load the image into memory so I can manipulate it without actualy displaying the image. basicaly what I am trying to acomplish is a tool I will be able to use to try figgering out what the palette usage is like... what colors are represented most what is the most likely background color This is a prestep for me in trying my hands on a color -> black&white image converter (in memory) that I will try usilyzing in a crude OCR hack... So anyone have a brilliant way of getting an image into memory and haveing all the pixel information accessable without displaying it? /Andraax
w0uter Posted June 2, 2006 Posted June 2, 2006 just read in the raw BMP using some dllcalling udf. then get the info from the header and get parsing those bytes My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Don N Posted June 2, 2006 Posted June 2, 2006 look at gdi32.dll, use call to GetBitmapDimensionExhttp://custom.programming-in.net/articles/...p?lib=gdi32.dll _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper
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