I'm trying to get ARGB pixel buffer from an icon file in Windows without using third-party libraries. Icon is loaded as:
HANDLE hIcon = ::LoadImageA(
nullptr,
path.c_str(),
IMAGE_ICON,
ICON_SIZE,
ICON_SIZE,
LR_LOADFROMFILE | LR_SHARED);
successfully, I can display it with GDI. Is there a way to grab ARGB buffer (I need it further to feed into a graphics library)?