seitz@cory.Berkeley.EDU (Matthew Eric Seitz) (05/13/88)
I'm interested in writing a picture format conversion program. My main obstacle is in writing routines to convert an image from on display capability to another. Basically, I'm looking for an algorithm which will take an image created on one device and convert it to one which can be displayed on another device. The algorithm would be given the following information: 1) The height and width of the original image. 2) The height and width of the target display device ( this can be infinite if sliding windows are used ). 3) The red, green, and blue intensity of each pixel of the image. 4) The x:y ratio of the image. 5) The x:y aspect ratio of the target display device. 6) The number of bits used to represent the intensity of each color for the image and the number of bits used by the target display device. 7) Restrictions on the palate, such as a) all colors can be used ( Amiga HAM mode ); b) A fixed number of colors can be used, but they can be any which can be displayed by the computer ( Amiga/Atari color, IBM EGA ); c) The palate is fixed and not all combinations of RGB can be displayed ( Atari Hi-Res, Macintosh, grey-scale devices ); If such an algorithm has been implemented, could you please pass the source along to me. Thank you.