CR的代码文本

all for learning about the world
  订阅 订阅  :: 管理

11 2013 档案

摘要:// Read byte[] from png fileBinaryReader binReader = new BinaryReader(File.Open(filepath, FileMode.Open));FileInfo fileInfo = new FileInfo(filepath);byte[] bytes = binReader.ReadBytes((int)fileInfo.Length);binReader.Close();// Init bitmapBitmapImage bitmap = new BitmapImage();bitmap.BeginInit();//bi 阅读全文

posted @ 2013-11-25 15:32 mumuliang 阅读(546) 评论(0) 推荐(0) 编辑

摘要:public static T FindVisualChild(DependencyObject obj) where T : DependencyObject { if (obj != null) { for (int i = 0; i (child); if (childItem != null) return childItem; } } return null; } ... 阅读全文

posted @ 2013-11-19 16:26 mumuliang 阅读(1912) 评论(0) 推荐(0) 编辑

摘要:在窗体未激活时,似乎标准输出的调用会无效。待究。#include #include #include // AllocConsole();void printConsole(std::string s){ HANDLE g_Con = GetStdHandle(STD_OUTPUT_HANDLE); DWORD dwWritten=0; WriteConsoleA(g_Con,s.c_str(),s.length(),&dwWritten,NULL);}void RelocationConsole(void){ HANDLE hStd; int fd; ... 阅读全文

posted @ 2013-11-10 13:17 mumuliang 阅读(551) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示