question on use GUIPlus on windows 10 64bits

2022-09-17 Thread Ward
I think the answer is yes. The base type of UINT is int32 in winim. And the prototype of GdipGetImageWidth is: proc GdipGetImageWidth*(image: ptr GpImage, width: ptr UINT): GpStatus Run So following code should be work, too. var width1: int32 if GdipG

question on use GUIPlus on windows 10 64bits

2022-09-16 Thread oyster
[fileformats] 109,812 [fontformats] 85,772 [simd] 72,042 blends.nim 11,025 common.nim 2,987 contexts.nim26,903 fonts.nim 23,257 images.nim 26,271 internal.nim

question on use GUIPlus on windows 10 64bits

2022-09-16 Thread oyster
I think it could be better if pixie only focuses on other functions but uses external jpg/png/other loading/saving lib.

question on use GUIPlus on windows 10 64bits

2022-09-16 Thread oyster
I read something in like var width1, height1, width2, height2: int32 Run then if GdipGetImageWidth(gdipbmp1, cast[ptr UINT](&width1)) != Ok: return false Run could

question on use GUIPlus on windows 10 64bits

2022-09-16 Thread oyster
so bad, I met the similar problem stated in I think it is better for me not to use in real project at least for now, but take a glimpse from time to time.

question on use GUIPlus on windows 10 64bits

2022-09-13 Thread Ward
I use gdiplus to deal image in wNim/wImage. You can look at it.

question on use GUIPlus on windows 10 64bits

2022-09-13 Thread ElegantBeef
Perhaps instead of a binding, the native nim [Pixie](https://github.com/treeform/pixie) library can help you.

question on use GUIPlus on windows 10 64bits

2022-09-13 Thread oyster
then the following code gets wrong of cause var img: ptr GpImage status = GdipLoadImageFromFile(L"a.png", &img); echo status Run which says `18` ( GdiplusNotInitialized).

question on use GUIPlus on windows 10 64bits

2022-09-13 Thread oyster
Since I can't recall any image library binding for nim which can read image file, write image file, resize image, and read pixel colors - correct me if I am wrong, and I don't think huge OpenCV is a good choice, I think maybe I could use GDIPlus on my windows 10 64bits. khchen has supplied a bi