1 Replies - 359 Views - Last Post: 15 January 2010 - 03:13 AM Rate Topic: -----

#1 bianca77  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 15-January 10

I am stuck not sure what to look for !

Posted 15 January 2010 - 02:29 AM

I would like to find a way either by tutorial or sample code, to be able to have 1 large bmp and select parts of the image to view, i.e like a fruit machine reel, have it on part of the image and the click on a button and it scrolls down the image untill i press the button again and it should stop.
I have searched for a good few hours now, and have drawn a blank any ideas what i am looking for ????
or if anyone can help it would be great.

many thanks

Is This A Good Question/Topic? 0
  • +

Replies To: I am stuck not sure what to look for !

#2 FlashM  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 380
  • View blog
  • Posts: 1,195
  • Joined: 03-December 09

Re: I am stuck not sure what to look for !

Posted 15 January 2010 - 03:13 AM

If you want to select just a portion of your original image, you would do something like this:

Bitmap image = new Bitmap(@"C:\Ales\Temp\s3.jpg");
Rectangle rectangle = new Rectangle(0, 0, 200, 100);
Bitmap partial = image.Clone(rectangle, System.Drawing.Imaging.PixelFormat.Undefined);




Hope this helps...
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1