??Java?????????
???????????? ???????[ 2015/3/23 13:39:00 ] ????????Java ??????? ????? ASCII??
????ASCII??????????????????????ASCII?? ??е????????????????????Ч?????????????????????????????????????????????????????????????????????????????????????? ?С??????У????????????????????ASCII??????????????????Java?????д?????????????????????????ò????????????ü???С????? ??????????????????????????????????顣??????????????????????????????????????????
??????
????????????????????????ASCII???????????????????????????????????????????????????????????????????????С?????飬??? ?????????????????????????????????????????????Щ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????ɡ?????????????????????? ???????С?????????????????????
??????????????????????????????????????????????ó????????????????
??????=??=?? =(??+??+??)/ 3
??????????????????????????????ó???????????????????ó????????????????????????????????λ???б???????????????????????????????????
int r1 = (charPixel >> 16) & 0xFF;
int g1 = (charPixel >> 8) & 0xFF;
int b1 = charPixel & 0xFF;
int r2 = (sourcePixel >> 16) & 0xFF;
int g2 = (sourcePixel >> 8) & 0xFF;
int b2 = sourcePixel & 0xFF;
int thresholded = (r2 + g2 + b2) / 3 < THRESHOLD ? 0 : 255;
error = Math.sqrt((r1 - thresholded) * (r1 - thresholded) +
(g1 - thresholded) * (g1 - thresholded) + (b1 - thresholded) * (b1 - thresholded));
????????????洢??????????У?????????????????????????????????????????????????????????????????磬?????????????????????????????????????????????????????????
????Rectangle rect = new TextLayout(Character.toString((char) i)?? fm.getFont()??
????fm.getFontRenderContext()).getOutline(null).getBounds();
????g.drawString(character?? 0?? (int) (rect.getHeight() - rect.getMaxY()));
??????????GitHub?????????????????
???????????Щ??ò???????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11