How to rotate an image?

D

Diego F.

Hi all. I have a listview with images and my application must be able to
rotate one image. I need a method to rotate 90 degrees rigth (i.e.).

Is that possible?
 
D

Diego F.

I tried with that

Dim indice As Integer = DADLV1.SelectedItems(0).ImageIndex
DADLV1.SelectedItems(0).ImageList.Images(indice).RotateFlip(RotateFlipType.Rotate180FlipXY)

But it doesn't work.

ImageList1 is where images are loaded
DADLV1 is the listview control
 
D

Diego F.

Well, I could solve that using a temporary picturebox to rotate the image.

Now my problem is that: Must all images in a listview have the same size? My
images have the proportions of a standard document and I would like rotated
images look landscape instead of vertical. I don't know if that's possible.

Other solution is to assign square size to all images, but then images adapt
the new size and the proportions are wrong.
 
J

Jwalant Natvarlal Soneji

Well, I could solve that using a temporary picturebox to rotate the image.

Now my problem is that: Must all images in a listview have the same size?My
images have the proportions of a standard document and I would like rotated
images look landscape instead of vertical. I don't know if that's possible.

Other solution is to assign square size to all images, but then images adapt
the new size and the proportions are wrong.

--

Regards,

Diego F.









- Show quoted text -

hey friend, use another picture box and rotate image in that and then
put the same in first picturebox, both boxes should have autosize
property set to true.
 

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

Top