469,631 Members | 1,476 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

How to rotate an image?

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?

--

Regards,

Diego F.

Apr 11 '07 #1
3 4916
I tried with that

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

But it doesn't work.

ImageList1 is where images are loaded
DADLV1 is the listview control

--
Regards,

Diego F.

"Diego F." <di********@msn.comwrote in message
news:e3*************@TK2MSFTNGP05.phx.gbl...
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?

--

Regards,

Diego F.

Apr 11 '07 #2
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.
"Diego F." <di********@msn.comwrote in message
news:OP**************@TK2MSFTNGP06.phx.gbl...
>I tried with that

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

But it doesn't work.

ImageList1 is where images are loaded
DADLV1 is the listview control

--
Regards,

Diego F.

"Diego F." <di********@msn.comwrote in message
news:e3*************@TK2MSFTNGP05.phx.gbl...
>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?

--

Regards,

Diego F.


Apr 11 '07 #3
On Apr 11, 5:29 pm, "Diego F." <diego_f...@msn.comwrote:
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.

"Diego F." <diego_f...@msn.comwrote in message

news:OP**************@TK2MSFTNGP06.phx.gbl...
I tried with that
Dim indice As Integer = DADLV1.SelectedItems(0).ImageIndex
DADLV1.SelectedItems(0).ImageList.Images(indice).R otateFlip(RotateFlipType.*Rotate180FlipXY)
But it doesn't work.
ImageList1 is where images are loaded
DADLV1 is the listview control
--
Regards,
Diego F.
"Diego F." <diego_f...@msn.comwrote in message
news:e3*************@TK2MSFTNGP05.phx.gbl...
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?
--
Regards,
Diego F.- Hide quoted text -

- 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.

Apr 19 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Leo Koolsbergen | last post: by
7 posts views Thread by Showjumper | last post: by
17 posts views Thread by santel_helvis | last post: by
1 post views Thread by iwdu15 | last post: by
8 posts views Thread by Samuel Shulman | last post: by
10 posts views Thread by Joey_Stacks | last post: by
2 posts views Thread by Dariusz.Donimirski | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.