In theory, most of this is possible. You will not be able to determine the size(kb) of the image because a displayed image is just a dummed down version of a true image in most cases and you do not know the original file format. Here is what I would do to determine the other information you need.
1. Make a big pot of coffee
2. Get some good snackage.
3. Determine the location of the window on the desktop that contains the image you are analyzing.
4. Take a snapshot (image) of the area you are analyzing. (Look up how to get a print screen of an area of the desktop).
5. Break down the image so that you can analze each individual pixels RGB value information.
6. Using the RGB information found in the upper left corner of your snapshot you should be able to determine the background color.
7. Once you have this information you should be able to determine differences in RGB values as you analyze from the top left to the bottom right of your image area. As you find the start and stop points of this information log the vertical and horizontal coordinates of each corner of the image.
8. Calculate the size of image in pixels based on your 4 corner points.
9. If you do not find any pixel variations inside your image area then you do not have an image displayed.
10. Say good morning to all your coworkers that left you last night somewhere around step 4.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.