Image Warp Function needed.
-
Hi , I need a function to warp image . Warp(HBITMAP,HBITMAP,point1,point2,point3,point4) or Warp(Byte*,Byte*,inputsize,point1,point2,point3,point4) this function would tranform image to fit the quadrilateral pointed by four points. there is artical on codeproject AAform which is really very good but it is very slow. for me that quadrilateral will always be convex. Some help in this will be highly appreciated Thanks in advance. Sandip.
-
Hi , I need a function to warp image . Warp(HBITMAP,HBITMAP,point1,point2,point3,point4) or Warp(Byte*,Byte*,inputsize,point1,point2,point3,point4) this function would tranform image to fit the quadrilateral pointed by four points. there is artical on codeproject AAform which is really very good but it is very slow. for me that quadrilateral will always be convex. Some help in this will be highly appreciated Thanks in advance. Sandip.
There's the old PlgBlt fron GDI: "The PlgBlt function performs a bit-block transfer of the bits of color data from the specified rectangle in the source device context to the specified parallelogram in the destination device context." However, it probably doesn't do the anti-aliasing mentioned in the AAForm article. Have you looked at the GDI+ functions? There looks to be about twenty different 'DrawImage' methods in the Graphics class, as well as a SetSmoothingMode method with a SmoothingModeAntiAlias as an option (although this method may just apply to lines and curves).
-
There's the old PlgBlt fron GDI: "The PlgBlt function performs a bit-block transfer of the bits of color data from the specified rectangle in the source device context to the specified parallelogram in the destination device context." However, it probably doesn't do the anti-aliasing mentioned in the AAForm article. Have you looked at the GDI+ functions? There looks to be about twenty different 'DrawImage' methods in the Graphics class, as well as a SetSmoothingMode method with a SmoothingModeAntiAlias as an option (although this method may just apply to lines and curves).