Edge Image tiling instead of resizing

Hi
I am developing a gwt applciaiton and I need some windows with custom edge graphics. I already tested our custom graphics with smartgwt but edge graphics resized instead of backgroung tiling. Using this method We can only use pixel size edges or we had to prepare fixed size edges. I already implemented gwt 9 edge windows structures using css class to tile edge background. I already digged code level and I could not find useful method.

Thank you

ENder

Could you clarify what’s tiling? The corners? Fixed sized corners is what we recommended for the best image quality because browsers have inconsistent scaling algorithms and the result of scaling round media can look very bad. But the Window as a whole can have whatever size you want, because the side pieces (top, left, right, bottom) stretch without a problem.

I dont want to stretch my images, may repeat or croped visible part. I already implented this feature using following css property for div (td also works).

example CSS class property

background:transparent url(test_R.png) repeat-y scroll 0 0;

OK.. not sure what you’re missing then. In SmartClient you set the edgeImage property and place a series of images in the same folder, following a naming convention to indicate which image is for which part of the 9-segment edge. Just see the docs.

I already tested what you offer but it streches images and I dont want it. I am asking if there is any existing method to implement such 9 sized windows without strecting, maybe repeated tiling, or croping

Thanks anyway

It’s not clear how you could get a clean edge join if the image is not stretchable. Maybe if you could post a screenshot of what you want your window to look like..

you are rigtht on free resize its a problem, but my windows size has fixed heigths, so I can calculate exact dimensions, With edge image memthod I can handle this situation with different sized edge images but I have many windows so I want a flexible solution. Here is strech and tiled edge windows screens. I created tiled one manualy

http://ojs.elektromarket.com/tiled.png

http://ojs.elektromarket.com/strecth.png

each windows size 200 x 200 px

note:I could not find how to attach picture to my post

So you seem to care about a variety of sizes of Window, but not the ability to have a truly arbitrary size Window, because that won’t look right?

Well, it’s a pretty rare requirement :slight_smile: The best approach might be to have your own simplified “EdgedCanvas” that uses individual Img widgets for each side and corner, since Img widgets can tile.

Ok
Ok get it, I will do some changes or will use custom sized edges…

Thank you for support

Happy new year :slight_smile:

can you please explain how to do that ? indeed i’ll really appreciate if a sample is possible..

One approach is to use snapTo positioning to place a series of Img or StretchImg components at various corners and edges of a Canvas.

so this has nothing to do with EdgedCanvas. you mean placing images on four side of a canvas to get a custom border effect right ?