摘要:
第一步,下载Google的ZXing类库,以便引用; BitMatrix bitMatrix; private void Button_Click_1(object sender, RoutedEventArgs e) { string content = this.txtChat.Text; Dictionary hints = new Dictionary(); hints.Add(EncodeHintType.CHARACTER_SET, "UTF-8"); ... 阅读全文
摘要:
public BitmapImage ConvertWriteableBitmapToBitmapImage(WriteableBitmap wbm){ BitmapImage bmImage = new BitmapImage(); using (MemoryStream stream = new MemoryStream()) { PngBitmapEncoder encoder = new PngBitmapEncoder(); encoder.Frames.Add(BitmapFrame.Create(wbm)); encod... 阅读全文