Solve the problem that the factory system using Zhengdian Atom is equipped with vsftpd FTP file server and cannot be connected using filezilla software.

Environmental statement: In the ARM Linux environment of the IMX6ULL development board, combined with the latest version of the factory system of Zhengdian Atom, the FTP server on the development board can be connected to the FTP server on the Windows filezilla software to transfer files to each other 1. vi /etc/vsftpd.conf //Modify the configuration […]

Load bitmaps in combination with GDI in D2D environment

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <Windows.h> #include <d2d1.h> #include <wincodec.h> #pragma comment(lib, “d2d1.lib”) #pragma comment(lib, “Windowscodecs.lib”) #define SAFE_RELEASE(P) if(P){P->Release() ; P = NULL ;} extern “C” ID2D1Bitmap* mybitmapcreate(ID2D1DCRenderTarget*); float left = 5; float top = 10; float Bottom = 10; float Right = 30; ID2D1Bitmap *pBitmap = NULL; IWICImagingFactory *pIWICFactory = NULL; void […]

win32 – use GDI+ to play gif pictures

I encountered such a problem when I was doing a case today, so I recorded it. Codeproject has a similar case, but it is compiled using the MFC template. Because we only need win32 programs, so…. the code is as follows: CodeProject: Play GIF using GDI+ The other is implemented using double buffering, I have […]

Use GDI+ (WIC) to load 32-bit bitmap or PNG image (with transparency channel)

#include <windows.h> #include <gdiplus.h> HBITMAP LoadBitmapFromResource(DWORD ResourceID, bool transparent = true) { HANDLE hGlobal = NULL; ULONG_PTR GDIToken = 0; Gdiplus::Image* Img = NULL; Gdiplus::GdiplusStartupInput GDIStartInput = NULL; Gdiplus::GdiplusStartup( &GDIToken, &GDIStartInput, NULL); HRSRC hResource = FindResource(NULL, MAKEINTRESOURCE(ResourceID), “BINARY”); if (!hResource) {<!– –>return NULL;} HGLOBAL hFileResource = LoadResource(NULL, hResource); if (!hFileResource) {<!– –>return NULL;} LPVOID lpFile […]

Win32 – Use of GDI+ Gaussian Blur

Although GDI+ is marked in the title, it is not actually used in the actual implementation. However, the relevant documentation of GDI+ has some API instructions about Gaussian blur, see the link below: Blur class (gdipluseffects.h) Using the Blur class, you can apply a Gaussian blur effect to a bitmap and specify the nature of […]