_WeightedAbs() 개인적인 메소드

private _WeightedAbs ( int valueHave, int valueWant, bool fPunish ) : int
valueHave int
valueWant int
fPunish bool
리턴 int
예제 #1
0
 private static int _MatchImage(BitmapFrame frame, int bitDepth, int width, int height, int bpp)
 {
     return(2 * Utility._WeightedAbs(bpp, bitDepth, false) + Utility._WeightedAbs(frame.PixelWidth, width, true) + Utility._WeightedAbs(frame.PixelHeight, height, true));
 }