GetMaximumFontSize(graphics, fontFamily, text, style, allowWordWrapping, maxWidth, maxHeight) MakeSemitransparentImage(width, height, initGraphics, drawOpaqueLayer, drawTransparencyLayer, transparencyFromChannel, invertTransparency)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: Rectangle FitIntoMaintainAspectRatio(this Size, Rectangle)Declarationpublic static Rectangle FitIntoMaintainAspectRatio(
this Size fitWhat,
Rectangle fitInto
) Summary
Returns a rectangle that has the same aspect ratio as fitWhat but fits into fitInto. Parametersthis Size | fitWhat |
Specifies the aspect ratio of the desired rectangle. | Rectangle | fitInto |
The rectangle into which to fit the result rectangle. |
Returns
The result rectangle which fits into fitInto. |