locked
Image processing libraries for Win CE 6.0 R2 RRS feed

  • Question

  • hi all,

     

    I am doing a project in Image magnification techniques as part of my M.Tech final year project. We have a zooming algorithm which is in Matlab. I need to implement the same on ARM 926EJ-S board in C# or C++. I have the Win CE 6.0 OS and the corresponding BSP for the board.

    I need some image processing libraries which can be used for developing applications on Win CE 6.0. Can some one suggest me libraries for Win CE 6.0.

    Thank you

    Tuesday, November 10, 2009 5:56 AM

Answers

  • Hi sravan09,

    For zooming image, we can draw the image in a rectangle which has been zoomed. Like the code below:

    private void ZoomImage()
        {
            bmpZoom = new Bitmap(bmp.Width, bmp.Height);
            Graphics g = Graphics.FromImage(bmpZoom);
            int new4W = bmp.Width / 4;
            int new4H = bmp.Height / 4;
            int new2W = bmp.Width / 2;
            int new2H = bmp.Height / 2;
            Rectangle srcRect = new Rectangle(new4W, new4H, new2W, new2H);
            Rectangle dstRect = new Rectangle(0, 0, bmpZoom.Width, bmpZoom.Height);
            g.DrawImage(bmp, dstRect, srcRect, GraphicsUnit.Pixel);
        }

    For more information:
    How to: Create a Zoom Effect

    For c++ code, we can use StretchBlt to implement:
    http://msdn.microsoft.com/en-us/library/ms942629.aspx


    Best regards,
    Guang-Ming Bian - MSFT
     
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, November 12, 2009 5:37 AM
  • Hi,

    For native (C/C++) you can blit (bitblt) a small part of the image into a bigger rect. This will give you a zoom effect. This will also be fast.

    Thank you,
    CED
    Friday, November 13, 2009 4:28 PM

All replies

  • Hi sravan09,

    For zooming image, we can draw the image in a rectangle which has been zoomed. Like the code below:

    private void ZoomImage()
        {
            bmpZoom = new Bitmap(bmp.Width, bmp.Height);
            Graphics g = Graphics.FromImage(bmpZoom);
            int new4W = bmp.Width / 4;
            int new4H = bmp.Height / 4;
            int new2W = bmp.Width / 2;
            int new2H = bmp.Height / 2;
            Rectangle srcRect = new Rectangle(new4W, new4H, new2W, new2H);
            Rectangle dstRect = new Rectangle(0, 0, bmpZoom.Width, bmpZoom.Height);
            g.DrawImage(bmp, dstRect, srcRect, GraphicsUnit.Pixel);
        }

    For more information:
    How to: Create a Zoom Effect

    For c++ code, we can use StretchBlt to implement:
    http://msdn.microsoft.com/en-us/library/ms942629.aspx


    Best regards,
    Guang-Ming Bian - MSFT
     
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, November 12, 2009 5:37 AM
  • Hi,

    For native (C/C++) you can blit (bitblt) a small part of the image into a bigger rect. This will give you a zoom effect. This will also be fast.

    Thank you,
    CED
    Friday, November 13, 2009 4:28 PM