473,329 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,329 software developers and data experts.

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 5089
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Leo Koolsbergen | last post by:
Hallo, Maybe a very simpel problem, but I cannot find a solution. From a webcam I can retreive pictures, but as the cam is positioned upside down I have to rotate the (jpeg) pictures. I've...
7
by: Showjumper | last post by:
Hi, I have developed an upload server controls to be reused over a number of projects. One of the tasks it needs to handle is to rotate an image. I want to accoplish this by checking the checkbox...
17
by: santel_helvis | last post by:
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
1
by: iwdu15 | last post by:
hi, im trying to rotate a gdi drawn object on my form with a keypress....forinstance when i push the down arrow, for it to rotate the object drawn until the top is down, or if i push the right...
8
by: Samuel Shulman | last post by:
Is it possible and how to rotate pictures in HTML document Thank you, Samuel
10
by: Joey_Stacks | last post by:
Does anyone know of a scipt that will rotate random div layers on page refresh? I have a primary content area front and center on my site homepage, and I'd like to rotate various chunks of html...
2
by: Dariusz.Donimirski | last post by:
I must rotate bmp using Xlib without change bmp's memory. If someone knows how I can do this, please help me. dariusz sorry about my english, I'm still learning
1
Thekid
by: Thekid | last post by:
Hi, I have an image similar to a clock, with numbers and letters going around in a circle. I need to extract the numbers and letters from the image and have them print out in a straight line and in...
0
by: harryusa | last post by:
I am experimenting with the rotate function and so far I can't get my code to return anything but the URL of my script. Here it is: <?php // The file you are rotating $image =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.