Bitmap and Graphic Functions
Description
Functions for working with bitmaps and graphics.
- Name
- Description
- A5_DESIGN_BITMAP Function
The A5_DESIGN_BITMAP() function displays the Create Global Bitmap dialog box, which allows you to import a bitmap from a file or paste it from the clipboard.
- A5_GET_BITMAP Function
The A5_GET_BITMAP() displays a dialog box that assists you in navigating to and selecting a Windows Bitmap (.BMP) image to place into a Bitmap Image field in a table. Called by right click menu on Bitmap image field on a form or browse.
- A5_GET_BMP_FROM_FILE Function
The A5_GET_BMP_FROM_FILE() function reads a Windows Bitmap image into a blob variable.
- A5_GET_JPEG Function
The A5_GET_JPEG() displays a dialog box that assists you in navigating to and selecting a JPG image to place into a an Image field in a table. Called by right click menu on JPEG image field on a form or browse.
- A5_IMAGE_TRANSFORM Function
The A5_IMAGE_TRANSFORM() function displays the Image Transform dialog box. This utility allows you to scale, crop or rotate 8 bit Window Bitmap (.BMP) or JPEG images.
- a5_ink_to_png Function
Generate a PNG image from Ink data.
- BITMAP Function
BITMAP() draws a bitmap in memory.
- BITMAP_ALPHA Function
Draws a bitmap using a different bitmap an alpha-value.
- BITMAP_COLORS_GET Function
The BITMAP_COLORS_GET() function returns profile information about a bitmap (.BMP) image. It returns the colors used by a bitmap - sorted by usage. (color format R=red G=Green B=Blue C=count I=pallette index -1 if source is RGB).
- BITMAP_HEIGHT Function
BITMAP_HEIGHT() returns the height of the bitmap in inches.
- BITMAP_SATURATION Function
The BITMAP_SATURATION() function converts a color image to gray scale, with color saturation adjusted.
- BITMAP_SIZE Function
The BITMAP_SIZE() function returns a dot variable containing the dimensions of an image file. It returns the height and width of a bitmap (as .height and .width properties) . Units are 'inches', 'pixels' or 'cm'.
- Bitmap_to_JPEG Function
The BITMAP_TO_JPEG() function converts an image in memory from Windows Bitmap (.BMP) format to a JPEG (.JPG) format. - quality 100-best quality, 0-smallest size.
- BITMAP_TO_PALETTE_PNG Function
The BITMAP_TO_PALETTE_PNG() function converts a Windows bitmap (BMP) image to Portable Network Graphics (PNG) format.
- BITMAP_TO_PNG Function
The BITMAP_TO_PNG() function converts a Windows Bitmap (BMP) file to Portable Network Graphics (PNG) format . Flags include 'G'ray, 'R'gb, 'A'lpha-rgb 'I'nterlaced.
- BITMAP_TRANSLUCENT Function
The BITMAP_TRANSLUCENT() function draws a translucent bitmap (with opacity 100-0 for 100% to 0%) - optional transparent color is always treater 0% opacity.
- BITMAP_WIDTH Function
BITMAP_WIDTH() returns the width of the bitmap in inches.
- CHANGE_COLOR Function
The CHANGE_COLOR() function changes the colors of pixels in a specified area.
- CLIP_SHAPE Function
CLIP_SHAPE() defines a shape boundary for all subsequent bitmap drawing. Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW(). All drawing after will be clipped to the shape.
- Displaying and Printing Bitmaps
Xbasic offers a large number of functions that will create, draw, display, and print bitmaps.
- DRAW_BOX Function
The DRAW_BOX() function draws a box with an optional shadow.
- DRAW_WRAP_SCRIPT Function
DRAW_WRAP_SCRIPT() draws word wrapped text onto a bitmap. It also applies standard Code Editor colorization to text elements such as Comments.
- DRAW_WRAP_TEXT Function
DRAW_WRAP_TEXT() draws word wrapped text onto a bitmap using the current font inside the box - start at offset, returns offset rendered to.
- EXTENT_HEIGHT Function
Get the height of the page.
- EXTENT_WIDTH Function
Get the width of the page.
- FILL_OVAL Function
The FILL_OVAL() function draws an oval. The fill is current brush color. The border is the current pen color. Compare to the OVAL()and INNER_OVAL()functions.
- FILL_PIE Function
The FILL_PIE() function draws a "slice of a pie". The fill color is the current brush color. The border color is the current pen color. Compare to the INNER_PIE()and PIE()functions.
- FILL_POLY Function
FILL_POLY() completes a polygon and fills it with the current brush color. The border color is the current pen color. Compare to the INNER_POLY()and POLY()functions.
- FILL_RECT Function
The FILL_RECT() function draws a rectangle. The fill is current brush color. The border is the current pen color. Compare to the INNER_RECT()and RECT()functions.
- FILL_ROUND_RECT Function
The FILL_ROUND_RECT() function draws a round cornered rectangle. The fill color is the current brush color. The border color is the current pen color. Compare to the ROUND_RECT()and INNER_ROUND_RECT()functions.
- FILL_SHAPE Function
Draw a filled shape.
- INNER_OVAL Function
The INNER_OVAL() function draws an oval on the bitmap. The fill is the current brush color. There is no border. Compare to the FILL_OVAL()and OVAL()functions.
- INNER_PIE Function
The INNER_PIE() function draws a "slice of a pie". The fill color is the current brush color. There is no border. Compare to the FILL_PIE()and PIE()functions.
- INNER_POLY Function
The INNER_POLY() function completes and draws a polygon. There is no border. The fill color is the current brush color. Compare to the POLY()and FILL_POLY()functions.
- INNER_RECT Function
Draw the inside of a rectangle.
- INNER_ROUND_RECT Function
Draw the inside of a rounded rectangle.
- INNER_SHAPE Function
Draw inside of a filled shape.
- JPEG_TO_BITMAP Function
Convert a jpeg to a bitmap.
- LINE Function
Draw a line.
- LINETO Function
Continue a polygon.
- OVAL Function
Draw an oval on a bitmap.
- PIE Function
Draw a pie slice border.
- PNG_TO_BITMAP Function
Convert a png to a bitmap, optiona channel is default of (C)ombined, (R)gb only, (A)lpha blend only.
- POLY Function
Finish and draw a empty polygon.
- POLY_BEZIER Function
Finish and draw the a Bezier curve defined by a polygon.
- RECT Function
Draw the border of a rectangle.
- ROUND_RECT Function
Draw the border of a rounded rectangle.
- SET_FONT Function
Set font for drawing text.
- SET_ORIGIN Function
Set origin of coordinates.
- SET_ROTATE Function
Set rotation of coordinates in degrees.
- SET_SCALE Function
Set scale for units (default unit 1.0 = 1 inch).
- SET_UNITS Function
Set units to 'pixels' or 'inches'.
- SHAPE Function
Draw a shape on a bitmap.
- START_POLY Function
Start a polygon at a point.
- TEXT Function
TEXT() draws the indicated Text at the specified coordinates.
- TEXT_HEIGHT Function
Get the height of the text using the current font.
- TEXT_WIDTH Function
Get the width of the text using the current font.
- UI_BITMAP_CREATE Function
Create a bitmap of name, Width inches wide, Height Inches high.
- UI_BITMAP_CREATE_FROM_SCREEN Function
UI_BITMAP_CREATE_FROM_SCREEN() creates a bitmap from the screen. All measurements are in inches.
- UI_BITMAP_CREATE_FROM_XPM Function
The UI_BITMAP_CREATE_FROM_XPM() function creates a bitmap in XPM format, which supports Alpha Anywhere named colors.
- UI_BITMAP_DRAW Function
UI_BITMAP_DRAW() draws on a bitmap in memory.
- UI_BITMAP_DROP Function
Drop a bitmap from the bitmap cache, returns TRUE if bitmap was in cache.
- UI_BITMAP_INFO_GET Function
Returns information about a bitmap formats: w=width h=height b=bits-per-pixel.
- UI_BITMAP_LOAD Function
UI_BITMAP_LOAD() creates a new bitmap in memory from the data in a blob variable.
- UI_BITMAP_PNG_LOAD Function
Load a bitmap from a PNG blob into the bitmap cache, returns TRUE if succeeded.
- UI_BITMAP_PNG_SAVE Function
Save contents of a named bitmap to a PNG formatted blob.
- UI_BITMAP_SAVE Function
The UI_BITMAP_SAVE() method saves a named bitmap to a blob variable.
- UI_PRINTER_DRAW Function
Draw to printer page(s) returns status (Cancelled,Completed).
- UI_SCREEN_DRAW Function
Draw directly to the screen or simply use the context to get metrics.
- UI_SHAPE_DESTROY Function
The UI_SHAPE_DESTROY() function removes the named shape from memory. The following functions create named shapes: UI_SHAPE_OVAL(), UI_SHAPE_RECT(), UI_SHAPE_ROUND_RECT(), and UI_SHAPE_START_POLY().
- UI_SHAPE_LINETO Function
The UI_SHAPE_LINETO() function draws a line from the current position to the specified end point.
- UI_SHAPE_OVAL Function
UI_SHAPE_OVAL() creates an oval shape in memory that may be combined with other shapes.
- UI_SHAPE_POLY Function
The UI_SHAPE_POLY() function draws a line from the current position to the specified end point and terminates a polygon definition.
- UI_SHAPE_RECT Function
The UI_SHAPE_RECT() function draws a rectangle into the shape buffer. You can then use the shape buffer:
- UI_SHAPE_ROUND_RECT Function
The UI_SHAPE_ROUND_RECT() function draws a round cornered rectangle into the shape buffer. You can then use the shape buffer:
- UI_SHAPE_START_POLY Function
The UI_SHAPE_START_POLY() function defines the starting point for a polygon shape drawn in memory. The SET_PEN()function sets the border color. The SET_BRUSH()function sets the fill color.
- WINDOW_TO_IMAGE Function
The WINDOW_TO_IMAGE() function captures the image of an open window to a JPEG or BMP file.
- WRAP_TEXT_HEIGHT Function
WRAP_TEXT_HEIGHT() returns the height in inches of the text. Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().