C# Class MapAround.Mapping.RasterAlgorithms

Implements raster processing algorithms.
Show file Open project: gkrsu/maparound.core Class Usage Examples

Public Methods

Method Description
BindRaster ( Bitmap source, Point sourceControlPoints, ICoordinate destinationControlPoints, BoundingRectangle &rectangle, RasterBindingProgress progress ) : Bitmap

Performs a rubbersheeting transformation of raster.

Private Methods

Method Description
calcDestRaster ( Bitmap source, BoundingRectangle rectangle, ICoordinate warpTransformResult, RasterBindingProgress progress ) : Bitmap
calculateAffinneTransform ( int width, int height, PointF affinneTransformResult, Point sourceNodes, ICoordinate destNodes, RasterBindingProgress progress ) : void
calculateOptimalAffineTransformPoints ( Point sourceNodes, ICoordinate destNodes ) : int[]
calculateRubberSheetTransform ( int width, int height, PointF source, ICoordinate result, ICoordinate sourceNodes, ICoordinate destNodesShifts, RasterBindingProgress progress ) : void
checkControlPoints ( int sourceWidth, int sourceHeight, Point sourceControlPoints ) : bool
fillPixel ( int x, int y, Bitmap bmp, byte fillCount, int width, int height ) : void
getAffineTransformMatrix ( PointF p01, PointF p02, PointF p03, PointF p11, PointF p12, PointF p13 ) : Matrix
getDestRasterX ( int width, ICoordinate point, BoundingRectangle rectangle ) : int
getDestRasterY ( int height, ICoordinate point, BoundingRectangle rectangle ) : int
notifyProgessListenerIfNeeded ( RasterBindingProgress progress, int startProgressPercent, int endProgressPercent, double &completed, double &previousPercent, int sourceWidth ) : void

Method Details

BindRaster() public static method

Performs a rubbersheeting transformation of raster.
public static BindRaster ( Bitmap source, Point sourceControlPoints, ICoordinate destinationControlPoints, BoundingRectangle &rectangle, RasterBindingProgress progress ) : Bitmap
source System.Drawing.Bitmap A System.Drawing.Bitmap instance containing the source image
sourceControlPoints Point Control points of source
destinationControlPoints ICoordinate Control points on the map
rectangle BoundingRectangle A bounding rectangle defining a bouns of transformed raster
progress RasterBindingProgress Defines a method which is called to notify a subscriber about completion state.
return System.Drawing.Bitmap