473,327 Members | 1,920 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,327 software developers and data experts.

Image rotation doesn't take effect till...

Hi,
Here is a very interesting issue,
Assume i have picturebox and loaded a image into picturebox, however
whenever i want to rotate image using:

'For example 90 degree
PictureBox1.Image.RotateFlip(RotateFlipType.Rotate 90FlipX)

This rotation takes effect on picturebox after i minimize - remaximize
form OR after i drag form somewhere outside the screen the re-bring to
a visible location on the screen.

If i don't drag form somewhere outside the screen OR minimize then re-
bring to normal window position.

Is this a bug or how can i overcome this?

Thanks a lot!
Dec 24 '07 #1
3 3265
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:70**********************************@e23g2000 prf.googlegroups.com...
Hi,
Here is a very interesting issue,
Assume i have picturebox and loaded a image into picturebox, however
whenever i want to rotate image using:

'For example 90 degree
PictureBox1.Image.RotateFlip(RotateFlipType.Rotate 90FlipX)

This rotation takes effect on picturebox after i minimize - remaximize
form OR after i drag form somewhere outside the screen the re-bring to
a visible location on the screen.

If i don't drag form somewhere outside the screen OR minimize then re-
bring to normal window position.

Is this a bug or how can i overcome this?

Thanks a lot!
Have you tried a form Refresh() or picturebox Refresh() after the rotation?

Mike Ober.
Dec 24 '07 #2
On Dec 24, 11:25 pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
Hi,
Here is a very interesting issue,
Assume i have picturebox and loaded a image into picturebox, however
whenever i want to rotate image using:

'For example 90 degree
PictureBox1.Image.RotateFlip(RotateFlipType.Rotate 90FlipX)

This rotation takes effect on picturebox after i minimize - remaximize
form OR after i drag form somewhere outside the screen the re-bring to
a visible location on the screen.

If i don't drag form somewhere outside the screen OR minimize then re-
bring to normal window position.

Is this a bug or how can i overcome this?

Thanks a lot!
However this a kind of indirect solution which corrects this but still
i want to know why i need to adjust visibility propery of picturebox.

PictureBox1.Image.RotateFlip(RotateFlipType.Rotate 90FlipX)
PictureBox1.Visible = False
PictureBox1.Visible = True

Another issue, as i stated in a post with no reply, while dragging
picturebox the image and form gets a very slow performance and jittery
tearing effects occur on screen. There's no such problem on 3rd party
softwares like XnView using on same system.

Thanks.
Dec 24 '07 #3
On Dec 24, 11:30 pm, "Michael D. Ober" <obermd.@.alum.mit.edu.nospam.>
wrote:
"kimiraikkonen" <kimiraikkone...@gmail.comwrote in message

news:70**********************************@e23g2000 prf.googlegroups.com...
Hi,
Here is a very interesting issue,
Assume i have picturebox and loaded a image into picturebox, however
whenever i want to rotate image using:
'For example 90 degree
PictureBox1.Image.RotateFlip(RotateFlipType.Rotate 90FlipX)
This rotation takes effect on picturebox after i minimize - remaximize
form OR after i drag form somewhere outside the screen the re-bring to
a visible location on the screen.
If i don't drag form somewhere outside the screen OR minimize then re-
bring to normal window position.
Is this a bug or how can i overcome this?
Thanks a lot!

Have you tried a form Refresh() or picturebox Refresh() after the rotation?

Mike Ober.
Hi! Thank you, refresh function does it without needing to refresh
picturebox using visible property to false / true :-)
Dec 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Deepa | last post by:
Hi All, I'm facing problem displaying image of size 5000X5000 .My window size is smaller than image size so i'm not able to see the complete image.i can use scroll bars to view the image but i...
2
by: Andreas Viklund via DotNetMonster.com | last post by:
Hi! I am developing an application in ASP.NET that takes an image, that have been created with a digital camera or camera phone, and processes it, to get data from it. The image taken by the user...
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
14
by: Gale | last post by:
I wrote a simple script for image rotation. now i need to have some transition effect betwean images in JS What do you suggest ? Thank you
3
by: Mark Szlazak | last post by:
The following page simulates a pool cue and cue ball: http://members.aol.com/myscript/cue.html Mouse cursor position around the cue ball determines where a roll-over of 179 pool cue images is...
5
by: Ricardo Furtado | last post by:
I'm trying, for a week or two, to create a procedure in order to rotate the image in any picturebox control in a cephalometry software. I've found a web site that shows how that can be done:...
2
by: Dominic Vella | last post by:
Hi, I know I seem to have the really complicated questions, but I guess that's why I'm here. This is a little verbose, only because I've been trying to crack this for a week now. Your help...
8
by: infoseekar | last post by:
Image Resize & Rotation Hi I have 2 scripts, one for Image rotation and other image resize and they both are working. Image resize scripts load the picture and resize it and Image rotation...
3
by: chvennela | last post by:
Hi, how to make complete rotation any image in html/css <img src=C:\Users\Desktop\DSC00583.JPG" height=300 widht=200 style="image-rotation:90deg;">
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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
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.