GDIPLUS: can i draw an image using corners?

the Gdiplus::Graphics::DrawImage() have a way for draw using coners? or the rotation points?
What does 'coners' or 'rotation points' mean regarding an image?
i mean 'upperleft' coner, 'upperright' coner, and the others.
i think 'coner' is the right word.
i think 'coner' is the right word.
Think again. Corner, or.....

GDI+ Coordinates.

https://flylib.com/books/en/2.72.1/the_coordinate_system.html

https://forums.codeguru.com/showthread.php?504566-GDI-Coordinates

https://social.msdn.microsoft.com/Forums/en-US/8821631b-7f9d-4036-88d8-1837fa90c02c/how-to-correctly-scale-the-coordinate-system-in-gdi-and-select-the-line-width-for-drawing-it

(DDG metalink, "GDI+ drawing using coordinates"):
https://duckduckgo.com/?q=GDI%2B+drawing+using+coordinates&t=ffsb&ia=web

https://docs.microsoft.com/en-us/windows/win32/api/gdiplusgraphics/nf-gdiplusgraphics-graphics-drawimage(image_int_int_int_int_int_int_unit)

[in] x
Type: INT
Integer that specifies the x-coordinate of the upper-left corner of the destination position at which to draw the image.

[in] y
Type: INT
Integer that specifies the y-coordinate of the upper-left corner of the destination position at which to draw the image.

x and y coordinates.

Maybe you mean rounded corners ?
There are quite a few overloads of DrawImage that allow passed REALs or a passed Point/PointF or Rect/RectF to supply the coordinates of the upperleft corner of the image to draw. And/or to specify the location and size of the area to draw the image.

https://docs.microsoft.com/en-us/windows/win32/api/gdiplusgraphics/nl-gdiplusgraphics-graphics
Maybe you mean rounded corners ?

Rounding off the corners of an image would probably require applying a mask of the rounded corners to the image and then transforming the masking area to be transparent when drawing the image.

OR

Draw a rectangle with rounded corners, filling the area with an image.

https://www.autohotkey.com/boards/viewtopic.php?t=33410

Doable, for sure.

Amazing what doing a bit of searching the bowels of the interwebs can scrape up.

https://duckduckgo.com/?q=GDI%2B+drawing+an+image+with+rounded+corners&t=ffsb&ia=web
Last edited on
sorry... not rounded... just normal corners.
but adding the 4 points, instead just X,Y and Width, Height.
Topic archived. No new replies allowed.