Image file dimension reader
A function to read the dimensions of image files (supports BMP, PNG, and DDS) without having to actually load the image into memory. Comes with example code.
A function to read the dimensions of image files (supports BMP, PNG, and DDS) without having to actually load the image into memory. Comes with example code.
A useful program which can load and position (in real-time) images onto the screen, and stores click coordinates into a text file. very easy to use, and very flexible.
Use this for finding the coordinates of buttons, or where to place a picture onto the screen, or where to draw an object, ect. just load images onto the screen, and get clicking!
please credit if used!
These easy to use functions allow images to be created using memblocks within dark basic pro code. This can be used to create your own images and to edit loaded images.
The shapes included are:
-dot
-line
-circle (not filled)
-box (filled)
The top left pixel of an image memblock is (1,1) when working with these functions. The bottom right is therefore (width,height). Although memblocks allow transparency to be edited, this is ignored in my functions.
The necessary code is below the remark "functions". Everything above is just an example.