Image rotation doesn't take effect till...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kimiraikkonen

    #1

    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.Ima ge.RotateFlip(R otateFlipType.R otate90FlipX)

    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!
  • Michael D. Ober

    #2
    Re: Image rotation doesn't take effect till...

    "kimiraikko nen" <kimiraikkonen8 5@gmail.comwrot e in message
    news:70ea9cfc-ec84-46fd-88ce-95b94de4e6cb@e2 3g2000prf.googl egroups.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.Ima ge.RotateFlip(R otateFlipType.R otate90FlipX)
    >
    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.


    Comment

    • kimiraikkonen

      #3
      Re: Image rotation doesn't take effect till...

      On Dec 24, 11:25 pm, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:
      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.Ima ge.RotateFlip(R otateFlipType.R otate90FlipX)
      >
      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.Ima ge.RotateFlip(R otateFlipType.R otate90FlipX)
      PictureBox1.Vis ible = False
      PictureBox1.Vis ible = 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.

      Comment

      • kimiraikkonen

        #4
        Re: Image rotation doesn't take effect till...

        On Dec 24, 11:30 pm, "Michael D. Ober" <obermd.@.alum. mit.edu.nospam. >
        wrote:
        "kimiraikko nen" <kimiraikkone.. .@gmail.comwrot e in message
        >
        news:70ea9cfc-ec84-46fd-88ce-95b94de4e6cb@e2 3g2000prf.googl egroups.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.Ima ge.RotateFlip(R otateFlipType.R otate90FlipX)
        >
        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 :-)

        Comment

        Working...