上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页
摘要: 很多时候我们习惯使用GDI+中Image类来加载本地文件,但是有时候我们需要资源中从加载png格式的图片时,却无法使用该类。 我们可以使用FindResource,LoadResource和LockResource以获取指向图像字节的指针。然后从中创建一个IStream。IStream可用于初始化G 阅读全文
posted @ 2021-02-17 20:13 strive-sun 阅读(1522) 评论(0) 推荐(0)
摘要: 按照很多视频教程进行操作,发现到hexo d这一步后,无法部署到github远端。 目前的解决方法: npm un hexo-deployer-git npm i hexojs/hexo-deployer-git 最后的博客地址:https://strsun.github.io/ 博客内容会慢慢更新 阅读全文
posted @ 2021-02-08 17:53 strive-sun 阅读(127) 评论(0) 推荐(0)
摘要: 1. 进程与线程的关系,图解 进程简单理解就是我们平常使用的程序,进程拥有自己独立的内存空间地址,拥有一个以上的线程。 线程可以理解为轻量级的进程,是程序执行的最小单元。在某个进程启动后,会默认产生一个主线程,主线程可以创建多个子线程,因此线程是存在进程内的,位于一个进程内的线程可以共享部分资源,故 阅读全文
posted @ 2021-02-07 21:03 strive-sun 阅读(243) 评论(0) 推荐(0)
摘要: 当需要设置位图的混合模式时,应该使用ID2D1DeviceContext而不是ID2D1RenderTarget。 代码如下: #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <comdef.h> #include <d2d1.h> 阅读全文
posted @ 2021-02-02 18:02 strive-sun 阅读(624) 评论(0) 推荐(0)
摘要: 微软文档:Transforms 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 ID2D1SolidColorBrush* m_pOriginalShapeBrush, * m_pFillBrush,* m_pTransformedShapeBrush; 阅读全文
posted @ 2021-02-02 17:11 strive-sun 阅读(464) 评论(0) 推荐(0)
摘要: 微软文档:Geometries overview 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 // Test_Direct2D_Brush.cpp : Defines the entry point for the application. // # 阅读全文
posted @ 2021-01-29 17:03 strive-sun 阅读(231) 评论(0) 推荐(0)
摘要: #include <Windows.h> #include <WinSafer.h> #include <stdio.h> #include <sddl.h> bool _IsNewProcessLaunched() { // Create the restricted token. SAFER_L 阅读全文
posted @ 2021-01-28 16:48 strive-sun 阅读(189) 评论(0) 推荐(0)
摘要: 用作复习,下面是第一个getchar()是用来接受字符,第二个是用来接受回车符 char a; while (1) { a = getchar(); getchar(); // scanf_s("%[^\n]"); std::cout << "Hello" ; std::cout << a ; } 阅读全文
posted @ 2021-01-27 17:51 strive-sun 阅读(945) 评论(0) 推荐(0)
摘要: 这里需要两个app. parent.cpp #include <Windows.h> #include <stdio.h> int main() { SECURITY_ATTRIBUTES se = {}; se.nLength = sizeof(SECURITY_ATTRIBUTES); se.b 阅读全文
posted @ 2021-01-26 16:56 strive-sun 阅读(558) 评论(0) 推荐(0)
摘要: 微软文档:Brushes overview 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 // Test_Direct2D_Brush.cpp : Defines the entry point for the application. // #inc 阅读全文
posted @ 2021-01-21 16:50 strive-sun 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页