Add-ons › Widgets › Web Developer
Background Drawing :: Fragments
Description
Only for developers.
This library creates and manages dynamic backgrounds through the use of a canvas element.
// Create the background:
el.createBGImage(url | filename);
// Set borders
el.bgImage.setBorders( all | hor, vert | top, right, bottom, left );
// Redraw (must be done manually every time element's size changes)
el.draw();
The lines defined by border values divide the image into 9 parts.
* The corner pieces are drawn as corners.
* The edge pieces are tiled along the edges.
* The center piece is tiled in the center.
No borders at all will tile the whole image.
Opposing borders equal to the image's size will stretch the image to the new size.
Screenshots

Comments (5 on the original page, latest shown)
Download
This file has not been recovered yet. Do you have a copy? Tell us.
About this widget
| Downloads | 14,142 |
|---|---|
| Category | Web Developer |
| Version | 1.0 |
| Size | 20KB |
| Last update | June 15, 2006 |
| Devices | desktop |
| Original page | Internet Archive |
Very nice Christian
I have no idea what this is supposed to do...
Benjamin: The library allows you to dynamically create rounded corners. It chops the image dynamically.
What are you all talking about? It's a green rectangle filled with Lorem Ipsum. Click the buttons and the shape of the rectangle changes. Big hairy deal.
don't know what this is all about... what library are you talking about... is this javascript libraries your talking about? I'm new in this area, so I'm confused!