Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
rasil
- Posts: 31
- Joined: 23 Apr 2020 13:05
#1
Post
by rasil » 02 Jul 2021 17:05
Hello!
Is there a way to create a image with a batch file only? i was thinking like a 64x64 with big pixels being drawn line by line. Is it possible to input a array of numbers and the batch file being able to output a bmp or a jpeg? such as colour codes for batch file like this:
F = white C = red
Input:
Code: Select all
FFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFCCCCCCCCCFFFFFFFFF
FFFFFFFFCCCCCCCCCFFFFFFFFF
FFFFFFFFCCCCCCCCCFFFFFFFFF
FFFFFFFFCCCCCCCCCFFFFFFFFF
FFFFFFFFCCCCCCCCCFFFFFFFFF
FFFFFFFFCCCCCCCCCFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFF
Output:
Thanks in advance have a good day!
-
aGerman
- Expert
- Posts: 4678
- Joined: 22 Jan 2010 18:01
- Location: Germany
#3
Post
by aGerman » 03 Jul 2021 08:15
This takes ages because the 4-bit RGBI information has to be converted into 24-bit RGB information first. Someone else may try to improve it ...
Steffen
-
Attachments
-
- makebmpfromrgbi.zip
- (1.98 KiB) Downloaded 501 times
-
rasil
- Posts: 31
- Joined: 23 Apr 2020 13:05
#5
Post
by rasil » 03 Jul 2021 09:21
aGerman wrote: ↑03 Jul 2021 08:15
This takes ages because the 4-bit RGBI information has to be converted into 24-bit RGB information first. Someone else may try to improve it ...
Steffen
Woah!
This is exactly what I am looking for but as you have stated it is slow and to make it faster can the RGB colour code directly be added to the txt file using a online colour picker like this
I chose to use the batch colour codes because it was going to make it easier for me to make pictures but as this is exactly what i was looking for I'm willing to input the RGB colour codes. or anything similar.
Thanks
-
aGerman
- Expert
- Posts: 4678
- Joined: 22 Jan 2010 18:01
- Location: Germany
#6
Post
by aGerman » 03 Jul 2021 10:01
T3RRY already linked my original thread. Look at post #4
viewtopic.php?p=63470#p63470
Steffen
//Edit: Also updated the makebmpfromrgbi.zip above to improve the performance a little.
-
rasil
- Posts: 31
- Joined: 23 Apr 2020 13:05
#7
Post
by rasil » 03 Jul 2021 17:36
Excellent!
Great work Steffen! your edit improved performance a lot. Thanks for taking the time to help me!