maybe I'm the onlyone who asks for this, sorry, but it came from the development of my last program.
I would like to have two things:
Using 2bit, 4bit, 8bit-256 colors indexed BMP's in a normal way, not to be converted into 24/32bit BMP's.
Using an included BMP (IncludeBinary) like a file opened from any disk.
Short explanation why:
I'm a carpet-designer, all programs are developed for my work. Im working in the section aof weaving, not printing. In the weaving section all BMP's are indexed with max 256 colors.
So the BMP has just one byte (0-255) for each pixel of the BMP. This is necessary, because any pixelss value is used for multiple weaving-informations too. It is not only the pointer to an RGB-value in the palette-section of the BMP-file, but for much more waeving-technical informations.
In my last program I transform a carpet-design-BMP into weaving instructions, using the original-design-BMP and 3 more binding-BMP-files with technical informations. These 4 BMP-files will be read and combined into a new 5th BMP-file for the loom.
The 3 binding-BMP-files are always the same, therefore they are included binary into the exe-file. This is done, that no "stupid user can delete these files from any disk, by accident" with the result the program is unusable.
- To work with these included BMP'S, I want to have the possibility to open a binary included file with a fileNumber, like a file on disk OpenIncludedBianry(file#) ,
and to have the possibility to set a pointer f.e. to the beginning of the color-palette-section (byte 54) to read the palette RGB'S, or to the section with the bitmap-data (byte 1078) to read the pixlevalue 0-255. Therefore a command like IncludedBinarySeek(file#, bytepos) is needed,
and to read the data the command ReadIncludedBinary(file#, [ .a, .b, .c, .i, .w, .d, .l, .s], bytes)
at least CloseIncludedBinary(file#)
I hope I could explain it understandable.
Regards and a nice sunday with #stayathome
Rainer