Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6360219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:37:14+00:00 2026-05-24T23:37:14+00:00

Why my image wont rotate? Image map = Properties.Resources.Map; //Creates a new Bitmap as

  • 0

Why my image wont rotate?

    Image map = Properties.Resources.Map;

    //Creates a new Bitmap as the size of the window
    Bitmap bmp = new Bitmap(map.Width, map.Height);
    //Creates a new graphics to handle the image that is coming from the stream
    Graphics g = Graphics.FromImage((Image)bmp);
    g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear;

    MapY += (js.State.Y - 500)/100;
    MapRotation += (js.State.X - 500)/100;

    RotateBilinear filter = new RotateBilinear(30, true);
    g.DrawImage(map, 0, MapY, map.Width, map.Height);

    Bitmap newbmp = bmp.Clone(new Rectangle(0, 0, bmp.Width, bmp.Height), System.Drawing.Imaging.PixelFormat.Format24bppRgb);

    filter.Apply(newbmp);
    picBoxMap.Image = (Image)newbmp;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:37:14+00:00Added an answer on May 24, 2026 at 11:37 pm
    filter.Apply(newbmp) 
    

    returns a bitmap of the rotated image.

    My guess is since you don’t assign a new bitmap, it is lost.

    Try:

    Bitmap rotatedBmp = filter.Apply(newbmp)
    

    Then use the rotatedBmp for whatever you wanted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Image Dummy = Image.FromFile(image.png); Dummy.Save(image.bmp, ImageFormat.Bmp); what the question says i have these using
image naturalWidth return zero... that's it, why ? var newimage = new Image(); newimage.src
My image is too large for the turtle window. I had to enlarge the
I use this class to crop, resize my image: http://www.phpclasses.org/package/4268-PHP-Resize-crop-rotate-flip-flop-and-grey-images.html It uses GD. The
http://chrishorsnell.co.uk/emblem/rotate.php I am trying to make an image rotate. The jquery rotate plugin (
When my mouse over function is working, the clickable image wont send the value
Here is my CSS: .header { background-image:url(Images/head.png); background-position: center top; background-repeat:no-repeat; width:1010px; height:269px; }
I can't figure out why this code wont work. Any ideas? import java.awt.Graphics; import
I want to crop an image from the center in the size 200 *
I have a image of a Map and a smaller PictureBox control. I'm getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.