Starting Suggestions for Resolution of Graphics Problems



Real Mode Testing

My suggestion is to create several test images that are displayable in REAL mode: 640x480x2 in standard IBM-compatible VGA mode to lessen your starting difficulty. Scan a 6" x 4" area to 640x480x2 called TEST.TGA. Use INFO.EXE to verify image coordinates.



info test.tga <ENTER>


Display TEST.TGA with SHOWTGA.EXE to verify that image is correct.

showtga test.tga <ENTER>

Convert TEST.TGA to TEST.PCX by one of two methods.

convert test.tga test.pcx <ENTER>

tga2pcx test.tga test.pcx 640 480 <ENTER>

Display TEST.PCX with SHOWPCX.EXE to verify that image is correct.

showpcx test.pcx <ENTER>

Now, use this image (which requires no SVGA support) as part of a test Clipper application.

Virtual Mode Testing

A suggestion is to create several test images that are displayable in VIRTUAL mode: for example: 100 DPI 8.5" x 11.0" or 850 pixels by 1100 pixels. Scan an 8.5" x 11" area to 850x1100x2 called TESTDOC.PCX. Use INFO.EXE to verify image coordinates.



info testdoc.pcx <ENTER>

Display TESTDOC.PCX with VIEWPCX.EXE to verify that image is correct for VIRTUAL display. You must pass coordinates for the size of image window in which to display the image (remembering that you count from "0" for coordinates) and pass the video mode in which to display the image. The first example displays a portion of the document in a full screen window at 640x480, while the second example displays a quarter screen image in the lower-right quadrant of the screen at 1024x768. The third example preserves aspect ratio of an 8.5 x 11 PCX document scan displayed in a window approximately at aspect ratio at 1024 x 768.



viewpcx /nozoom testdoc.pcx 0 0 639 479 640 480 <ENTER>

viewpcx /nozoom /aspect testdoc.pcx 640 480 1023 767 1024 768 <ENTER>

viewpcx /aspect testdoc.pcx 0 0 790 767 1024 768 <ENTER>

Convert TEST.TGA to TEST.PCX by one of two methods.

convert test.tga test.pcx <ENTER>

tga2pcx test.tga test.pcx 640 480 <ENTER>

CONVERT.EXE uses video memory to perform conversions. Notice that the file-to-file converter, TGA2PCX.EXE (which requires no video memory, using, instead, file-to-file conversion) requires that the correct video mode be passed as parameters to be written into the PCX header. Display TEST.PCX with SHOWPCX.EXE to verify that image is correct.



showpcx test.pcx <ENTER>

Now, use this image (which requires no SVGA support) as part of a test Clipper application.






Return to Technical Support, Notes, Tips, and Programming Page






Return to SunShow Professional Page






Return to SunShow Main