2.2.2.22 MilStretch

The MilStretch enumeration specifies how a source rectangle MUST be stretched to fit a destination rectangle.

 typedef  enum
 {
   None = 0x00000000,
   Fill = 0x00000001,
   Uniform = 0x00000002,
   UniformToFill = 0x00000003
 } MilStretch;

None:  The original size is preserved.

Fill:  The aspect ratio of the source is not preserved. The source rectangle is scaled to fully fit the destination rectangle.

Uniform:  The aspect ratio of the source is preserved. The source rectangle is uniformly scaled to the largest size that fits the entire source within the destination rectangle. If the source and destination rectangles have different aspect ratios, some areas of the destination rectangle will be left unfilled.

UniformToFill:  The aspect ratio of the source is preserved. The source rectangle is uniformly scaled to the smallest size that fills the entire destination rectangle. If the source and destination rectangles have different aspect ratios, the source rectangle is clipped.