Sign up

Widgets » Background Drawing :: Fragments

  • 67 downloads last 7 days
  • 9,976 total downloads
  • Rating: +4 (login to vote)
Background Drawing :: Fragments V1.0 Jun 15, 2006 11:36:35 AM

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.


Comments 4 posts

Log in at the top of the page to post a comment.

1 - 4 of 4

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.

By OGRastamon, # Feb 14, 2007 2:07:07 AM

Benjamin: The library allows you to dynamically create rounded corners. It chops the image dynamically.

By virtuelvis, # Jun 20, 2006 2:30:27 PM

I have no idea what this is supposed to do...

By Benjamin Joffe, # Jun 20, 2006 1:51:39 PM

Very nice Christian :smile:

By Think, # Jun 20, 2006 0:24:39 AM

Copyright © 2001 - 2008 Opera Software. All rights reserved. About | Contact | Privacy | Disclaimer | Web analytics powered by HitsLink.HitsLink Logo