Fill method
#2105
Replies: 1 comment 1 reply
-
Please do not use the feature suggestions discussion group for questions! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I want to Fill bigger background image with smaller images. Fill method always makes squares, even if the brush image is a rectangle. It seems to take into account only the width of the image.
Code:
img.Fill(new ImageBrush(frameImage), new RectangleF(Convert.ToInt32(transformation.AnchorX.Value + parentX), Convert.ToInt32(transformation.AnchorY.Value + parentY), Convert.ToInt32(parentSize.X2), Convert.ToInt32(parentSize.Y2)));
Source image (frameImage):

Result:

Beta Was this translation helpful? Give feedback.
All reactions