新規登録

ウィジェット » Web Developer » Background Drawing :: Fragments

Background Drawing :: Fragments V1.0 2006/06/15 11:36:35

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.


コメント 5 通

ページのトップからログインしコメントする

1 - 5 中 5

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!

raphie 作 , # 2009/01/27 7:39:26

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.

OGRastamon 作 , # 2007/02/14 2:07:07

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

virtuelvis 作 , # 2006/06/20 14:30:27

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

Benjamin Joffe 作 , # 2006/06/20 13:51:39

Very nice Christian :smile:

Think 作 , # 2006/06/20 12:24:39

Copyright © 2001 - 2009 Opera Software. All rights reserved. About | Contact | Privacy | Disclaimer |