home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- egsblit.library/--background--
- egsblit.library/EB_BitAreaCircle
- egsblit.library/EB_BitAreaPolygon
- egsblit.library/EB_BitBlt
- egsblit.library/EB_BitBltClipped
- egsblit.library/EB_CopyBitMap
- egsblit.library/EB_CopyBitMapClipped
- egsblit.library/EB_Draw
- egsblit.library/EB_DrawClipped
- egsblit.library/EB_DrawClippedPatt
- egsblit.library/EB_ExtractColor
- egsblit.library/EB_FillMask
- egsblit.library/EB_FillMaskClipped
- egsblit.library/EB_FloodFill
- egsblit.library/EB_FloodOneBit
- egsblit.library/EB_FloodZeroBit
- egsblit.library/EB_InvertPixel
- egsblit.library/EB_InvertRectangle
- egsblit.library/EB_ReadPixel
- egsblit.library/EB_RectangleClipped
- egsblit.library/EB_RectangleFill
- egsblit.library/EB_UnpackImage
- egsblit.library/EB_Write
- egsblit.library/EB_WriteClipped
- egsblit.library/EB_WritePixel
-
- egsblit.library/--background-- egsblit.library/--background--
-
- The egsblit.library is a collection of two types of functions. First
- special blit functions like EB_BitAreaCircle(), that are not usefull for all
- types of bitmap. And second as a collection of stubs to simplify blit
- operations. The stubs normaly invoke the method of the bitmap, so it is a
- bit faster and more flexible to use direct method calls.
-
- EGS uses a virtual 24 bit color system. This means that all rendering
- commands can be used for 24 bit even, if the used bitmap is not 24 bit.
- Using a 24 bit color on a non 24 bit bitmap will normaly result in
- dithering. The dithering method relies on the bitmaps colors to be set to
- the bitmap classes default palette (for the range of pens used for
- dithering).
-
- A 24 bit pen is distinguished from a normal pen by beeing non zero in the
- upper three bytes. A problem would be color black (0x00000000), but all
- dithering color schemes are selected, to have color register 0 being black.
-
- Dithering can cause distorting effects. This is the case if the dithered
- area is very small (e.g. text), or if a dithered area is copied around. This
- problem can be solved by the use of pen colors for small areas. See
- "egsintui.doc" for more information on color pen sharing.
-
- egsblit.library/EB_BitAreaCircle egsblit.library/EB_BitAreaCircle
-
- NAME
- EB_BitAreaCircle -- Draw circle in one bit deep map
-
- SYNOPSIS
- EB_BitAreaCircle(dst, radius)
- A0 D0
-
- void EB_BitAreaCircle(E_EBitMapPtr, WORD)
-
- FUNCTION
- Draw a circle in a one bit deep map. The dimensions of the map are
- modified to fit the circle. The result can be used for EB_FillMask
- or EB_FillMaskClipped.
-
- NOTE
- This function will change the width, height and bytesPerRow
- field of the bitmap to fit the circle.
-
- INPUTS
- radius - radius of desired circle
-
- RESULT
- A bitmap with a filled circle.
-
- SEE ALSO
- EB_FillMask(), EB_FillMaskClipped(), EB_BitAreaPolygon(),
- EB_FloodOneBit(), EB_FloodZeroBit()
-
-
- egsblit.library/EB_BitAreaPolygon egsblit.library/EB_BitAreaPolygon
-
- NAME
- EB_BitAreaPolygon -- Draw polygon in one bit deep map
-
- SYNOPSIS
- EB_BitAreaPolygon(dst, poly, range, width, height)
- A0 A1 D0 D1 D2
-
- void EB_BitAreaPolygon(E_EBitMapPtr, EB_PolygonPtr, WORD, WORD, WORD)
-
- FUNCTION
- Draws a one bit deep polygon in a map. Modifies the dimensions of the
- map to fit the requierements of the polygon. The result can be used
- for EB_FillMask() or EB_FillMaskClipped().
-
- NOTE
- This function will change the width, height and bytesPerRow
- field of the bitmap to fit the circle.
-
- INPUTS
- poly - Pointer to array of coordinate pairs. The coordinates
- should be alligned to the upper left border.
- range - Number of vertices.
- width,
- height - Dimensions of polygon
-
- RESULT
-
- SEE ALSO
- EB_FillMask(), EB_FillMaskClipped(), EB_BitAreaCircle(),
- EB_FloodOneBit(), EB_FloodZeroBit()
-
-
- egsblit.library/EB_BitBlt egsblit.library/EB_BitBlt
-
- NAME
- EB_BitBlt -- do a bit blt with one or two bitmaps
-
- SYNOPSIS
- EB_BitBlt(src, dst, xs, ys, width, height, xd, yd, terms)
- A0 A1 D0 D1 D2 D3 D4 D5 D6
-
- void EB_BitBlt(E_EBitMapPtr, E_EBitMapPtr, WORD, WORD, WORD, WORD, WORD, WORD, UBYTE)
-
- FUNCTION
- Performs a bit blit with a source and a destination rectangle. The
- operation that is performed is defined with the terms minterm set.
-
- INPUTS
- src - the bitmap containing the source rectangle
- dst - the bitmap with the destination rectangle
- xs - left edge of the source
- ys - top edge of the source
- width - with of source and destination
- height - height of source and destination
- xd - left edge of the destination
- yd - top edge of the destination
- terms - minterms defining the type of operation
-
- RESULT
- A logical combination from the source and the destination rectangle
- into the destination rectangle.
-
- EXAMPLE
- These are the sixteen possible minterm combinations:
-
- dst = 0
- E_nSRC_nDST dst = ~(src|dst)
- E_nSRC_DST dst = (~src)&dst
- E_nSRC_nDST|E_nSRC_DST dst = ~src
- E_SRC_nDST dst = src&(~dst)
- E_nSRC_nDST| E_SRC_nDST dst = ~dst
- E_nSRC_DST|E_SRC_nDST dst = src != dst
- E_nSRC_nDST|E_nSRC_DST|E_SRC_nDST dst = ~(src&dst)
- E_SRC_DST dst = src&dst
- E_nSRC_nDST| E_SRC_DST dst = src == dst
- E_nSRC_DST| E_SRC_DST dst = dst
- E_nSRC_nDST|E_nSRC_DST| E_SRC_DST dst = (~src)|dst
- E_SRC_nDST|E_SRC_DST dst = src
- E_nSRC_nDST| E_SRC_nDST|E_SRC_DST dst = src|(~dst)
- E_nSRC_DST|E_SRC_nDST|E_SRC_DST dst = src|dst
- E_nSRC_nDST|E_nSRC_DST|E_SRC_nDST|E_SRC_DST dst = 1
-
- NOTE
- Not all minterm combination may be optimized, but all are implemented.
- The most common are implemented in EB_PIXELMAP and 1 bit depth, but
- you can use any type of bitmap for bitblits. If you just want to
- copy a rectangle you should consider EB_CopyBitMap(), but a call
- to EB_BitBlt() with the copy minterm is routed to EB_CopyBitMap()
- anyway.
-
- SEE ALSO
- EB_BitBltClipped(), EB_CopyBitMap(), EB_FillMask(),
- EB_ExtractColor()
-
-
- egsblit.library/EB_BitBltClipped egsblit.library/EB_BitBltClipped
-
- NAME
- EB_BitBltClipped -- perform a clipped bit blit
-
- SYNOPSIS
- EB_BitBltClipped(src, dst, rect, xs, ys, width, height, xd, yd, terms)
- A0 A1 A2 D0 D1 D2 D3 D4 D5 D6
-
- void EB_BitBltClipped(E_EBitMapPtr, E_EBitMapPtr, E_ClipRectPtr, WORD, WORD, WORD, WORD, WORD, WORD, UBYTE)
-
- FUNCTION
- Performs a clipped version of bit blit.
-
- INPUTS
- src - the bitmap containing the source rectangle
- dst - the bitmap with the destination rectangle
- rect - a rectangle in the destination bitmap, limiting
- the affected area
- xs - left edge of the source
- ys - top edge of the source
- width - with of source and destination
- height - height of source and destination
- xd - left edge of the destination
- yd - top edge of the destination
- terms - minterms defining the type of operation
-
- RESULT
- A logical combination from the source and the destination rectangle
- into the destination rectangle.
-
- SEE ALSO
- EB_BitBlt(), EB_CopyBitMap(), EB_FillMask(), EB_ExtractColor()
-
-
- egsblit.library/EB_CopyBitMap egsblit.library/EB_CopyBitMap
-
- NAME
- EB_CopyBitMap -- Copy rectangle from bitmap to bitmap
-
- SYNOPSIS
- EB_CopyBitMap(src, dst, xs, ys, width, height, xd, yd, mask)
- A0 A1 D0 D1 D2 D3 D4 D5 D6
-
- void EB_CopyBitMap(E_EBitMapPtr, E_EBitMapPtr, WORD, WORD, WORD, WORD, WORD, WORD, ULONG)
-
- FUNCTION
- Copies a rectangular area from one bitmap to an other (or the same).
- No clipping is performed either on source neither on destination. If
- source bitmap is a real color map (24 Bits) and the destination is
- not, a conversion will be done. This function may also be used, to
- make conversions between different bitmap types.
-
- The function will certainly be replaced by a blitter, i.e. it should
- be used in any case. "width" and "height" have the same meaning as
- for EB_RectangleFill().
-
- INPUTS
- src - Source bitmap
- dst - Destination bitmap
- xs, ys - Location of source rectangle
- width,
- height - Dimensions of rectangle
- xd, yd - Location of destination rectangle
-
- RESULT
-
- SEE ALSO
- EB_CopyBitMapClipped(), EB_BitBlt
-
-
- egsblit.library/EB_CopyBitMapClipped egsblit.library/EB_CopyBitMapClipped
-
- NAME
- EB_CopyBitMapClipped -- Copy rectangle from bitmap to bitmap clipped
-
- SYNOPSIS
- EB_CopyBitMapClipped(src, dst, rect, xs, ys, width, height, xd, yd, mask)
- A0 A1 A2 D0 D1 D2 D3 D4 D5 D6
-
- void EB_CopyBitMapClipped(E_EBitMapPtr, E_EBitMapPtr, EB_ClipRectPtr, WORD, WORD, WORD, WORD, WORD, WORD, ULONG)
-
- FUNCTION
- Copies a rectangluar area from a bitmap to an other (or the same).
- Clipping is performed through the cliprect. If source bitmap is a
- real color map (24 Bits) and the destination is not, a conversion
- will be done.
-
- INPUTS
- src - Source bitmap
- dst - Destination bitmap
- rect - Limiting clip rect in the destination bitmap
- xs, ys - Location of source rectangle
- width,
- height - dimensions of rectangle
- xd, yd - location of destination rectangle
-
- RESULT
-
- SEE ALSO
- EB_CopyBitMap(), EB_BitBlt()
-
-
- egsblit.library/EB_Draw egsblit.library/EB_Draw
-
- NAME
- EB_Draw -- Draw line
-
- SYNOPSIS
- EB_Draw(map, c, x1, y1, x2, y2, mask)
- A0 D0 D1 D2 D3 D4 D5
-
- void EB_Draw(E_EBitMapPtr, ULONG, WORD, WORD, WORD, WORD, ULONG)
-
- FUNCTION
- Draws a line of color c into a bitmap. If the color is a 24Bit color
- (using the heigher 24Bits, but not the lower eight) and the bitmap is
- no real color map, the next matching color is chosen. No clipping is
- performed.
-
- The function uses a modified Bresenham algorithm for ultimate speed
- and will certainly be replaced by a blitter. This means it should
- be used in any case.
-
- INPUTS
- map - map in which to render
- c - color, -1 to invert
- x1, y1 - starting position
- x2, y2 - ending position
-
- RESULT
-
- SEE ALSO
- EB_DrawClipped(), EB_ClippedPatt()
-
-
- egsblit.library/EB_DrawClipped egsblit.library/EB_DrawClipped
-
- NAME
- EB_DrawClipped -- Draw line clipped
-
- SYNOPSIS
- EB_DrawClipped(map, rect, c, x1, y1, x2, y2, mask)
- A0 A1 D0 D1 D2 D3 D4 D5
-
- void EB_DrawClipped(E_EBitMapPtr, EB_ClipRectPtr, ULONG, WORD, WORD, WORD, WORD, ULONG)
-
- FUNCTION
- Draw a line into a bitmap (see also EB_Draw()). Clipping is
- performed using the cliprect. The function only clips in one
- cliprect. To render through a list of cliprects, you should call this
- function once for every cliprect. The function respects the remainder
- when clipping, so if using several cliprects, the line is not broken
- at borders.
-
- INPUTS
- map - bitmap in which to render
- rect - cliprect for clipping
- c - color, -1 to invert
- x1, y1 - starting position
- x2, y2 - ending position
-
- RESULT
-
- SEE ALSO
- EB_Draw(), EB_ClippedPatt()
-
-
- egsblit.library/EB_DrawClippedPatt egsblit.library/EB_DrawClippedPatt
-
- NAME
- EB_DrawClippedPatt -- draw a clipped line with a pattern
-
- SYNOPSIS
- EB_DrawClippedPatt(map, rect, front, back, x1, y1, x2, y2, patt)
- A0 A1 D0 D1 D2 D3 D4 D5 D6
-
- void EB_DrawClippedPatt(E_EBitMapPtr, EB_ClipRectPtr, LONG, LONG, WORD, WORD, WORD, WORD, UWORD)
-
- FUNCTION
- Draw a line into a bitmap (see also EB_Draw()). Clipping is
- performed using the cliprect. The function only clips in one
- cliprect. To render through a list of cliprects, you should call this
- function once for every cliprect. The function respects the remainder
- when clipping, so if using several cliprects, the line is not broken
- at borders.
-
- If a pattern is supplied two pens will be used for rendering.
-
- INPUTS
- map - the map to draw into
- rect - a limiting clip rectangle, NULL for no clipping
- front - first pen (for 1 in the mask) -1 means invert
- back - second pen (for 0 in the mask) -1 means transparent
- x1, y1 - starting location
- x2, y2 - ending location
- patt - pattern, starting with the MSB and rotating to the
- left one bit after every pixel.
-
- RESULT
-
- SEE ALSO
- EB_Draw(), EB_DrawClipped()
-
-
- egsblit.library/EB_ExtractColor egsblit.library/EB_ExtractColor
-
- NAME
- EB_ExtractColor -- build a mask for a color
-
- SYNOPSIS
- EB_ExtractColor(src, dst, color, sx, sy, w, h, dx, dy)
- A0 A1 D0 D1 D2 D3 D4 D5 D6
-
- void EB_ExtractColor(E_EBitMapPtr, E_EBitMapPtr, ULONG, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Builds a mask of a rectangle depending on one color. For every
- pixel in the source that matches the color, the corresponding bit in
- the mask rectangle is toggled. This can be use for brush masking or
- flood fill.
-
- INPUTS
- src - bitmap containing the source rectangle
- dst - bitmap holding the mask
- color - the color to be looked for
- sx, sy - top left edge of sourced
- w, h - size of source and destination
- dx, dy - top left edge of mask
-
- RESULT
- A modified mask rectangle
-
- EXAMPLE
- Doing an flood fill in a bitmap
-
- void Flood(E_EBitMapPtr map; ULONG color; WORD x; WORD y)
- {
- E_BitMapPtr mask;
- EB_ClipRect rect, drect;
- EB_ImageDest image;
- ULONG oldColor;
- /*
- * Allocate a temporary mask bitmap
- */
- mask = E_AllocBitMap(map->With, map->Height, 1, E_PIXELMAP,
- E_EB_CLEARMAP, NULL);
- if (mask)
- {
- /*
- * get the color that is already there
- */
- oldColor = EB_ReadPixel(map, x, y);
- /*
- * Set all bits, coresponding to pixels that have the
- * old color color to 1
- */
- EB_ExtractColor(map, mask, oldColor, 0, 0,
- map->Width, map->Height, 0, 0);
- /*
- * Use the bitmap boundaries
- */
- rect.Left = 0;
- rect.Top = 0;
- rect.Right = map->Width -1;
- rect.Bottom = map->Height-1;
- /*
- * Flood fill all bits with 1 to 0, this changes the region that
- * was supposed to be flood filled
- */
- EB_FloodOneBit(mask,&rect,&drect,x,y);
- /*
- * Toggle all bits that were not in the flood to 0 and the
- * ones that were flood back to 1
- */
- EB_ExtractColor(map, mask, oldColor,
- drect.Left, drect.Top,
- drect.Right-drect.Left+1,
- drect.Bottom-drect.Top+1,
- drect.Left, drect.Top);
- /*
- * now fill the flooded area with the correct color
- */
- image.Colors.front = color;
- image.Colors.transparent = TRUE;
- image.Left = drect.Left;
- image.Top = drect.Top;
- image.Width = drect.Right-drect.Left+1;
- image.Height = drect.Bottom-drect.top+1;
- EB_FillMask(mask,map,&image,drect->Left,drect->Top,0);
- E_DisposeBitMap(map);
- }
- }
-
- SEE ALSO
- EB_FloodOneBit(), EB_FloodZeroBit(), EB_FillMask(), EB_BitBlt()
-
-
- egsblit.library/EB_FillMask egsblit.library/EB_FillMask
-
- NAME
- EB_FillMask -- Fill rectangle in bitmap through one pixel deep map
-
- SYNOPSIS
- EB_FillMask(mask, dst, pattern, x, y, mask2)
- A0 A1 A2 D0 D1 D2
-
- void EB_FillMask(E_EBitMapPtr, E_EBitMapPtr, EB_ImageDesPtr, WORD, WORD, ULONG)
-
- FUNCTION
- Fills a rectangluar area with one or two colors, depending on a mask.
- The size and location in the mask of the rectangle is described in
- pattern. If the colors described in pattern are 24bit colors and the
- map is no 24bit map, this function renders with color patterns, to
- simulate 24 bits. The function serves as basic function for Amiga
- fonts and Area commands.
-
- INPUTS
- mask - mask bitplane
- dst - destinaton bitmap
- pattern - description of source rectangle and colors
- x, y - destination location
-
- RESULT
-
- SEE ALSO
- EB_FillMaskClipped(), EB_BitAreaCircle(), EB_BitAreaPolygon(),
- EB_FloodOneBit(), EB_FloodZeroBit(), EB_ExtractColor()
-
-
- egsblit.library/EB_FillMaskClipped egsblit.library/EB_FillMaskClipped
-
- NAME
- EB_FillMaskClipped -- Fill rectangle clipped through one bit deep mask
-
- SYNOPSIS
- EB_FillMaskClipped(mask, dst, pattern, clip, x, y, mask2)
- A0 A1 A2 A3 D0 D1 D2
-
- void EB_FillMaskClipped(E_EBitMapPtr, E_EBitMapPtr, EB_ImageDesPtr, EB_ClipRectPtr, WORD, WORD, ULONG)
-
- FUNCTION
- Same as fill mask, but clipping is performed according to the
- cliprect.
-
- INPUTS
- mask - mask bitplane
- dst - destinaton bitmap
- pattern - description of source rectangle and colors
- clip - cliprect
- x, y - destination location
-
- RESULT
-
- SEE ALSO
- EB_FillMask(), EB_BitAreaCircle(), EB_BitAreaPolygon(),
- EB_FloodOneBit(), EB_FloodZeroBit(), EB_ExtractColor()
-
-
- egsblit.library/EB_FloodFill egsblit.library/EB_FloodFill
-
- NAME
- EB_FloodFill -- Fill connected area in bitmap (obsolete)
-
- SYNOPSIS
- EB_FloodFill(dst, clip, color, x, y, mode)
- A0 A1 D0 D1 D2 D3
-
- void EB_FloodFill(E_EBitMapPtr, EB_ClipRectPtr, ULONG, WORD, WORD, ULONG)
-
- FUNCTION
- Fills a consecutive area of pixels, the cliprect serves as additional
- border, if the area is open to the verge. If mode is set to zero then
- then that segement is filled which has the color of the starting
- point, else that segment is filled, which is surrounded by the fill
- color.
-
- INPUTS
- dst - Destination bitmap
- clip - cliprect
- color - fillcolor
- x, y - starting location
-
- RESULT
-
- SEE ALSO
-
-
- egsblit.library/EB_FloodOneBit egsblit.library/EB_FloodOneBit
-
- NAME
- EB_FloodOneBit -- flood with ones
-
- SYNOPSIS
- EB_FloodOneBit(map, clip, dclip, x, y)
- A0 A1 A2 D0 D1
-
- void EB_FloodOneBit(E_EBitMapPtr, EB_ClipRectPtr, EB_ClipRectPtr, WORD, WORD)
-
- FUNCTION
- Floods an area of zeros with ones. Only works with E_PIXELMAP and one
- bit depth.
-
- INPUTS
- map - the mask to flood
- clip - surrounding cliprect, giving maximum borders for
- the flood
- dclip - destination cliprect. Is filled with the actual size
- of the flooded area
- x, y - seed location
-
- RESULT
-
- SEE ALSO
- EB_FloodZeroBit(), EB_ExtractColor(), EB_FillMask()
-
-
- egsblit.library/EB_FloodZeroBit egsblit.library/EB_FloodZeroBit
-
- NAME
- EB_FloodZeroBit -- flood with zeros
-
- SYNOPSIS
- EB_FloodZeroBit(map, clip, dclip, x, y)
- A0 A1 A2 D0 D1
-
- void EB_FloodZeroBit(E_EBitMapPtr, EB_ClipRectPtr, EB_ClipRectPtr, WORD, WORD)
-
- FUNCTION
- Floods an area of ones with zeros. Only works with E_PIXELMAP and one
- bit depth.
-
- INPUTS
- map - the mask to flood
- clip - surrounding cliprect, giving maximum borders for
- the flood
- dclip - destination cliprect. Is filled with the actual size
- of the flooded area
- x, y - seed location
-
- RESULT
-
- SEE ALSO
- EB_FloodZeroBit(), EB_ExtractColor(), EB_FillMask()
-
-
- egsblit.library/EB_InvertPixel egsblit.library/EB_InvertPixel
-
- NAME
- EB_InvertPixel -- Invert a pixel
-
- SYNOPSIS
- EB_InvertPixel(map, x, y)
- A0 D0 D1
-
- void EB_InvertPixel(E_EBitMapPtr, WORD, WORD)
-
- FUNCTION
- Inverts a pixel. Double usage of this function by using the same
- parameters will be no effect.
-
- INPUTS
- map - bitmap to work on
- x, y - pixel coordinates
-
- RESULT
-
- SEE ALSO
- EB_WritePixel(), EB_ReadPixel()
-
-
- egsblit.library/EB_InvertRectangle egsblit.library/EB_InvertRectangle
-
- NAME
- EB_InvertRectangle -- Invert the border of a rectangle
-
- SYNOPSIS
- EB_InvertRectangle(map, left, top, right, bottom)
- A0 D0 D1 D2 D3
-
- void EB_InvertRectangle(E_EBitMapPtr, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Inverts the border of a rectangle. Double usage of this function
- using same parameters will result in no effect. Should be used for
- mouse dragging operations. This function is used by EGSIntui to move
- and resize windows. Clipping is performed at the bitmap borders.
-
- INPUTS
- map - the bitmap to work on
- left - left edge of the rectangle
- top - top edge of the rectangle
- right - right edge of the rectangle
- bottom - bottom edge of the rectangle
-
- RESULT
-
- SEE ALSO
- EB_RectangleFill()
-
-
- egsblit.library/EB_ReadPixel egsblit.library/EB_ReadPixel
-
- NAME
- EB_ReadPixel -- get the color of a pixel
-
- SYNOPSIS
- EB_ReadPixel(map, x, y)
- A0 D0 D1
-
- ULONG EB_ReadPixel(E_EBitMapPtr, WORD, WORD)
-
- FUNCTION
- Returns the color of a pixel. In pseudo modes this is the register
- number in real mode its the color itself (RRRR RRRR GGGG GGGG BBBB
- BBBB xxxx xxxx).
-
- Reads a pixel's colour. This function is certainly not accelerated
- by a blitter. Should be used for reasons of compatibility when
- using several bit depths or when support of any new graphics card
- without software modification is wanted.
-
- Obviously for 8 or 24 bit mode more direct techniques are
- recommended.
-
- INPUTS
- map - pointer to the bitmap
- x, y - pixel coordinates in the map
-
- RESULT
- the color, either a register value or a real color value, depending on
- the mode
-
- EXAMPLE
- To get a 24 bit color value:
-
- color = (map->Colors) ?
- (ULONG)(map->Colors[EB_ReadPixel(map,x,y)]) :
- EB_ReadPixel(map,x,y);
-
- SEE ALSO
-
-
- egsblit.library/EB_RectangleClipped egsblit.library/EB_RectangleClipped
-
- NAME
- EB_RectangleClipped -- Fill rectangle clipped
-
- SYNOPSIS
- EB_RectangleClipped(map, rect, c, left, top, width, height, mask)
- A0 A1 D0 D1 D2 D3 D4 D5
-
- void EB_RectangleClipped(E_EBitMapPtr, EB_ClipRectPtr, ULONG, WORD, WORD, WORD, WORD, ULONG)
-
- FUNCTION
- Same as EB_RectangleFill(), but clipping is done using the cliprect.
-
- INPUTS
- map - the bitmap to fill
- rect - limiting clip rect
- c - color to fill with
- left, top - left top coordinate of rectangle
- width,
- height - size of rectangle
-
- RESULT
-
- SEE ALSO
- EB_RectangleFill()
-
-
- egsblit.library/EB_RectangleFill egsblit.library/EB_RectangleFill
-
- NAME
- EB_RectangleFill -- Fill rectangle
-
- SYNOPSIS
- EB_RectangleFill(map, c, left, top, width, height, mask)
- A0 D0 D1 D2 D3 D4 D5
-
- void EB_RectangleFill(E_EBitMapPtr, ULONG, WORD, WORD, WORD, WORD, ULONG)
-
- FUNCTION
- Fills a rectangular area in a bitmap. If the color is a 24 bit color,
- but the bitmap is not 24 bit deep, the function fills with a color
- pattern to simulate 24 bits. "width" and "height" describe the real
- width and height in pixels, i.e. a one-pixeled rectangle has
- width=height=1.
-
- This function will certainly be replaced by a blitter and therefore
- should be used in any case.
-
- INPUTS
- map - bitmap in which to fill
- c - color, -1 to invert
- left, top - uppper left corner of rectangle
- width,
- height - dimensions of rectangle
-
- RESULT
-
- SEE ALSO
- EB_RectangleClipped()
-
-
- egsblit.library/EB_UnpackImage egsblit.library/EB_UnpackImage
-
- NAME
- EB_UnpackImage -- convert image to bitmap (obsolete)
-
- SYNOPSIS
- EB_UnpackImage(image, depth, colors)
- A1 D0 A2
-
- E_EBitMapPtr EB_UnpackImage(EB_ImagePtr, WORD, EB_ColorTablePtr)
-
- FUNCTION
- As the EGS libraries work in different bit depths, and bitmap
- organisations, there has to be an standardized format for icon,
- images etc. This format is defined in EB_Image. The aim of this
- function is to convert from this format to a bitmap. This function
- also allocates a bitmap in fast mem.
-
- INPUTS
- image - Image to convert
- depth - depth for destination
- colors - array of colors to use for conversion
-
- RESULT
-
- BUGS
- This function has now knowledge of the desired bitmap type, so it
- will return any type of bitmap, thus resulting in slow blits. The
- proposed work around, is to allocate a bitmap using E_AllocBitMap(),
- and then apply the "Unpack" method to it.
-
- SEE ALSO
-
-
- egsblit.library/EB_Write egsblit.library/EB_Write
-
- NAME
- EB_Write -- write text in build in font
-
- SYNOPSIS
- EB_Write(map, color, x, y, str, len, mask)
- A0 A2 D0 D1 A3 D2 D3
-
- void EB_Write(E_EBitMapPtr, EB_ColorDesPtr, WORD, WORD, char *, WORD, ULONG)
-
- FUNCTION
- Renders a text into a bitmap, using a build in 8x10 non proportional
- font. This function is faster than the EB_UnpackImage which is used
- by EG_Text(), to render amiga fonts. If your programs use lots of
- text and have no extraordinary font requirements you should use this
- font.
-
- INPUTS
- map - destination bitmap
- color - description of front and back color and transparency
- x, y - starting location
- str - text
- len - length of text
-
- RESULT
-
- SEE ALSO
- EB_WriteClipped(), EG_Text(), EB_FillMask()
-
-
- egsblit.library/EB_WriteClipped egsblit.library/EB_WriteClipped
-
- NAME
- EB_WriteClipped -- write text clipped in build in font
-
- SYNOPSIS
- EB_WriteClipped(map, rect, color, x, y, str, len, mask)
- A0 A1 A2 D0 D1 A3 D2 D3
-
- void EB_WriteClipped(E_EBitMapPtr, EB_ClipRectPtr, EB_ColorDesPtr, WORD, WORD, char *, WORD, ULONG)
-
- FUNCTION
- Same as EB_Write, but clipping is performed using the cliprect.
-
- INPUTS
- map - destination bitmap
- rect - limiting clipping rectangle
- color - description of front and back color and transparency
- x, y - starting location
- str - text
- len - length of text
-
- RESULT
-
- SEE ALSO
- EB_Write(), EG_Text(), EB_FillMask()
-
-
- egsblit.library/EB_WritePixel egsblit.library/EB_WritePixel
-
- NAME
- EB_WritePixel -- set a pixel
-
- SYNOPSIS
- EB_WritePixel(map, c, x, y, mask)
- A0 D0 D1 D2 D3
-
- void EB_WritePixel(E_EBitMapPtr, ULONG, WORD, WORD, ULONG)
-
- FUNCTION
- Writes pixel into a bitmap. If the color is 24 bit color but the
- bitmap is not the library simulates a 24 bit bitmap, using patterns.
- See also EB_ReadPixel.
-
- INPUTS
- map - map to work on
- c - color to be used for the pixel
- x, y - pixel location
-
- RESULT
-
- SEE ALSO
-
-
-