Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect argument for GdipDrawImagePointsRect and GdipDrawImagePointsRectI API functions #19

Closed
GCuser99 opened this issue Apr 11, 2024 · 1 comment

Comments

@GCuser99
Copy link

The first argument "Graphics" should be LongPtr type instead of Long I think. Here is what is currently in WDL:

Public Declare PtrSafe Function GdipDrawImagePointsRect Lib "gdiplus" (ByVal Graphics As Long, ByVal Image As LongPtr, points As POINTF, ByVal count As Long, ByVal srcx As Single, ByVal srcy As Single, ByVal srcwidth As Single, ByVal srcheight As Single, ByVal srcUnit As GpUnit, Optional ByVal imageAttributes As LongPtr = 0, Optional ByVal callback As LongPtr = 0, Optional callbackData As Any) As GpStatus

Public Declare PtrSafe Function GdipDrawImagePointsRectI Lib "gdiplus" (ByVal Graphics As Long, ByVal Image As LongPtr, dstpoints As POINT, ByVal count As Long, ByVal srcx As Long, ByVal srcy As Long, ByVal srcwidth As Long, ByVal srcheight As Long, ByVal srcUnit As GpUnit, Optional ByVal imageAttributes As LongPtr = 0, Optional ByVal callback As LongPtr = 0, Optional callbackData As Any) As GpStatus
@GCuser99 GCuser99 changed the title Incorrect argument for GdipDrawImagePointsRect and GdipDrawImagePointsRect API functions Incorrect argument for GdipDrawImagePointsRect and GdipDrawImagePointsRectI API functions Apr 11, 2024
@fafalone
Copy link
Owner

Thanks for reporting; I checked all the other class-passing parameters I could find and also corrected 2 other bugs of this type.

Fixed in v7.8.379, now available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants