"James Harris" <
james.h...@gmail.com> wrote in message
news:27c29bba-7230-42a4...@l18g2000vbv.googlegroups.com...
> On Oct 1, 5:47 pm, "Rod Pemberton" <do_not_h...@notemailnotz.cmm>
> wrote:
...
> > I thought it'd be nice to have an image of the output of one of my
> > programs. So, I'd like to capture an 80x25 text screen with colors
> > in MS-DOS (BIOS calls) to a standard image format. I mean an
> > image format like jpeg, gif, tiff, png, or bmp that can be converted
> > or resized with programs like Photoshop or GIMP. The format
> > doesn't really matter as long as it's a supported type. In the end,
> > I'll probably convert to jpeg or png.
> >
> > I'm assuming the program would need to read the screen's text and
> > colors, and convert each character of the text to an image format
> > using the BIOS font for each letter of the text.
>
> How about writing the raw screen memory to a disk file? That would
> keep the code you would need in your programs very simple.
I considered what was required to do so. I also considered doing it, if
nothing else was available to do the job. I suspected that it must've been
done to capture screens of DOS games. There are at least three posted
solutions posted that should work. I didn't try ScreenThief. I did try
both SNARF in RM MS-DOS and Print-Screen for WinSE. Both work.
SNARF captured just what was on the text screen, i.e., no border, with text
colors, using the BIOS text font. I used it in RM MS-DOS. So, it's not
limited to a Windows XP DOS console. The only slight issue was the output
format was BMP. BMP doesn't seem to be very widely supported. Although,
one program did convert it.
The Print-Screen captures everything on the Windows screen, including the
console window. I.e., the image must be trimmed. The DOS console in WinSE
uses a Windows font, which I didn't want. You can change the font, but I
didn't know which was the BIOS font ... The issue with Print-Screen is that
it copies to the Windows clipboard. You must paste it into a graphics
program. I don't know if all of them or just some of them accepts clipboard
data. The clipboard can only save to a file in some special 'clp' format.
Fortunately, I have a few graphics programs installed. Unfortunately, most
aren't working due to a corrupted/restored registry a few years back. So,
they need to be reinstalled. However, I don't use graphics programs that
much to fix it ...
I don't have much experience with graphics formats, like after 1990 or so.
I'm familiar with a few formats for early 8-bit machines. I considered
maybe learning something about BMP or PNG, maybe JPG, or whatever raw image
format is needed for VESA/VBE or VGA/SVGA. From what I've seen when I was
programming the text video code for my stalled OS project, some of the video
formats for "IBM" (x86 based) PCs are similar to formats for early non-x86
PCs (Amiga, Commodore, Apple, etc.).
Rod Pemberton