473,396 Members | 1,861 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,396 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 5093
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.