Skew Labels

V

vidhi

I have an indent image at cretin angle (to look it like 3D), and I put
it in the back of an Label, with grid format there are several labels
on it which indicates as tiles further they used for path finding.

My problem is the image is in parallelogram shape but the tiles are
rectangles so it didn't fit perfectly.

Please hint me way to make my Labels skew or any way to make them in
parallelogram shape.

Thanks for your suggestions in advance
 
Z

zero

I have an indent image at cretin angle (to look it like 3D), and I put
it in the back of an Label, with grid format there are several labels
on it which indicates as tiles further they used for path finding.

My problem is the image is in parallelogram shape but the tiles are
rectangles so it didn't fit perfectly.

Please hint me way to make my Labels skew or any way to make them in
parallelogram shape.

Thanks for your suggestions in advance

What image format supports non-rectangular images?

I would suggest opening the image file in an image editor, and adding a
transparent background to make it rectangular.
 
V

vidhi

actualy the problem is not with image. its the label who disturbs.

because indent image gives 3D look but retangular label disturbs the
tiles path.

if i can make label with parallalogram shape the it will be fits with
the background image
 
O

Oliver Wong

zero said:
What image format supports non-rectangular images?

Vector based images (as opposed to raster based images) can have
arbitrary shapes. The "surface area" of the images don't even need to be
continuous.

- Oliver
 
V

vidhi

Please your comment is not clear to me. Its so nice of you if you
discribes it with some clearty.
 
L

Luc The Perverse

vidhi said:
Please your comment is not clear to me. Its so nice of you if you
discribes it with some clearty.

You failed to quote the original post - making your post unclear to me and
the majority of the rest of the group
 
V

vidhi

i am sorry i not let u explain any thing.

but my actual problem is what i want ot make my labels in parallalogram
shape so that they can fit for an image of parallogram shape as tiles.

i found way to shear or rotate text of label by Graphics 2D but it
does't changes the shape of label
 
O

Oliver Wong

vidhi said:
Please your comment is not clear to me. Its so nice of you if you
discribes it with some clearty.

I was not answering your question, as I don't know how to make the
parallelogram-shaped JLabels. I was answering Zero's question of "What image
format supports non-rectangular images?" Sorry.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top