Udostępnij za pośrednictwem


CBitmap::SetBitmapDimension

Assigns a width and height to a bitmap in 0.1-millimeter units.

CSize SetBitmapDimension(
   int nWidth,
   int nHeight 
);

Parameters

  • nWidth
    Specifies the width of the bitmap (in 0.1-millimeter units).

  • nHeight
    Specifies the height of the bitmap (in 0.1-millimeter units).

Return Value

The previous bitmap dimensions. Height is in the cy member variable of the CSize object, and width is in the cx member variable.

Remarks

The GDI does not use these values except to return them when an application calls the GetBitmapDimension member function.

Requirements

Header: afxwin.h

See Also

Reference

CBitmap Class

Hierarchy Chart

CBitmap::GetBitmapDimension

Other Resources

CBitmap Members