RXGDUTIL - Rexx extensions to support building GIF files
Name RXGDUTIL - Rexx extensions to
support building
GIF files
Version v1.0, 9/95
Author Andy Wysocki
AB Software
3109 Village Rd West
Norwood, MA 02062-2542
(see EMail Addresses)
Distrib. Freeware
Type REXX DLL /src
Price -
Source Internet
Name: RXGD100.*
RXGDUTIL is an REXX extension with functions to build GIF files with REXX
programs.
The DLL contains the following functions:
RxgdImageCreate(x,y)
Create an image in memory
RxgdImageCreateFromGIF(filename)
Create
an image from a GIF file
RxgdImageDestroy(im)
Release the Image from Memory
RxgdImageGIF(filename)
Write a GIF file from Memory to a flat file
RxgdImageSetPixel(im, x, y, color)
Set
a specific Pixel to a color index
RxgdImageLine(im,
x1, y1, x2, y2, color) (correct syntax in v3.10)
Draw
a line between two end points
RxgdImagePolygon(im,
points, pointsTotal, color)
Draw a poloygon
with the verticies (at least 3)
RxgdImageFilledPolygon(im,
points, pointsTotal Color)
Draw a Poloygon with
the Verticies and fill it with the color
RxgdImageRectangle(im,
x1, y1, x2, y2, color)
Draw a rectangle with
the two corners (upper left first, then lower right)
RxgdImageFilledRectangle(im,
x1, y1, x2, y2, color)
Draw a rectangle with
the two corners (upper left first, then lower right) and fill it with the
color
RxgdImageArc(im, cx, cy, w, h, s, e, color)
Draw and ARC or CIRCLE with the given points
RxgdImageFillToBorder(im, x, y, border, color)
Flood a portion of the image with the specified
color
RxgdImageFill(im, x, y, color)
Floods
a portion of the image with the specified color
brush=RxgdImageSetBrush(im,
imbrush)
Allow you to use another image as a
brush to paint a whole picture at once
tile=RxgdImageSetTile(im,
imtile)
Allow you to use another image to tile
the GIF image
style=RxgdImageSetStyle(im, stylestem,
styleLength)
Allows you to specify pixels for
drawing dashed lines and other colorful stuff
stylebrush=RxgdImageGetStyleBrushed(im)
Allows you to get the Styled Brushed image handle
blue=RxgdImageBlue(im, color)
Retrieves
the BLUE portion of the color index
red=RxgdImageRed(im,
color)
Retrieves the RED portion of the color
index
green=RxgdImageGreen(im, color)
Retrieves
the GREEN portion of the color index
pixel=RxgdImageGetPixel(im,
x, y)
Retrieve the Color Index of the pixel
sx=RxgdImageSX(im)
Retrieve
the X & Y size of the Image
sy=RxgdImageSY(im)
Retrieve the X & Y size of the Image
RxgdImageString(im,
font, x, y, s, color)
Print some text onto the
GIF file at the specified location
RxgdImageStringUp(im,
font, x, y, s, color)
Print some text rotated
at 90 degrees onto the GIF file at the specified location
color=RxgdImageColorAllocate(im,
r, g, b)
Allocate the first available color
index in the image with the specified color, if the (256) color table is
full this will return -1
color=RxgdImageColorClosest(im,
r, g, b)
Find a color in the color table that
is closest to the colors specified
color=RxgdImageColorExact(im,
r, g, b)
Find a color in the color table that
is an exact match to the colors specified
total=RxgdImageColorsTotal(im)
Return the number of colors in the color table
interlace=RxgdImageGetInterlaced(im)
Return
if the image is interlaced or not
RxgdImageInterlaced(im,
interlace)
Return if the image is interlaced
or not
color=RxgdImageGetTransparent(im)
Return
the color index of the transparent color
RxgdImageColorTransparent(im,
color)
Return the color index of the transparent
color
RxgdImageColorDeallocate(im, color)
Remove
a color from the color table and leave the entry as usable
RxgdImageCopy(imdest,
imsrc, destX, destY, srcX, srcY, w, h)
Copy
a rectangular portion of one image to another image
RxgdImageCopyResized(imdest,
imsrc, destX, destY, srcX, srcY, destW, destH, srcW, srcH)
Copy
a rectangular portion of one image to another image. The destination region
can vary, resulting in stretching or shrinking the size of the image
[Back: GRFXREXX - get information about picture files]
[Next: GIF_INFO - get information about GIF files]