Re: Rotating an image

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You need to use CF2.0 and the lockBits method if the bitmap class. This
gives you access to the pixels of the bitmap. Go through each pixel and
move it to the rotated location in a second bitmap.


"Tamer Hesham" <TamerHesham@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A2B5FADA-3E1F-4A09-9E51-02D8764AEBAA@xxxxxxxxxxxxxxxx
> Hello All,
> I want to make a compass, that i give it the angle so the arrow points to
> the this angle, what i want to do is, i have an image for a compass with
> arrow points to the north, then i rotate the whole image to the angle, as
> if
> the arrow goes to this angle.
> So anyone could help me about rotating an image, i found it in windows
> application, but in mobile app. i cant do it.
> Thanks in advance,
> Tamer Hesham


.



Relevant Pages

  • Re: Problem with SavePicture, and a question on new versions
    ... > mode does not have to be in pixels. ... 500 pixels then the picture box will also be 700 x 500 pixels. ... and the bitmap shows ... to be *smaller* than the scale units that the BitBlt API is using ...
    (comp.lang.basic.visual.misc)
  • Re: How long Win32 viable?
    ... >> monitor pixels. ... the pixel based world we have with the Win32 API approach to graphics. ... would translate your comment as meaning that your apps are designed for one ... expecially when the bitmap has a lot more pixels than the form it is ...
    (borland.public.delphi.non-technical)
  • Anti-aliasing idea for bitmap
    ... How to edit a button's bitmap so that only the button ... I load an 8-bit bitmap as a resource. ... and edit its pixels depending on which state the button is in. ... Problem: No anti-aliasing. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: how to get a bitmap from the screen and then inside lisp?
    ... Getting pixels off the screen quickly is a bit complicated and you ... have to do some decoding of Windows bitmap data structures. ... int x, int y, int w, int h, ... // get the window handle ...
    (comp.lang.lisp)
  • Re: Delphi Roadmap (by David I)
    ... The programloads a bitmap, and applies a gaussian blur to it. ... image was 4105x3182 pixels. ... Under win32, my gaussian blur routine uses 3.0-3.1 seconds per run, ... Without copying to and from this buffer, ...
    (borland.public.delphi.non-technical)