CD2DSizeF Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CD2DSizeF Class.

A wrapper for D2D1_SIZE_F.

class CD2DSizeF : public D2D1_SIZE_F;  

Public Constructors

NameDescription
CD2DSizeF::CD2DSizeFOverloaded. Constructs a CD2DSizeF object from D2D1_SIZE_F object.

Public Methods

NameDescription
CD2DSizeF::IsNullReturns a boolean value that indicates whether an expression contains no valid data ( null).

Public Operators

NameDescription
CD2DSizeF::operator CSizeConverts CD2DSizeF to CSize object.

D2D1_SIZE_F

CD2DSizeF

Header: afxrendertarget.h

Constructs a CD2DSizeF object from CSize object.

CD2DSizeF(const CSize& size);  
CD2DSizeF(const D2D1_SIZE_F& size);  
  CD2DSizeF(const D2D1_SIZE_F* size);

 
CD2DSizeF(
    FLOAT cx = 0.,  
    FLOAT cy = 0.);

Parameters

size
source size

cx
source width

cy
source height

Returns a Boolean value that indicates whether an expression contains no valid data (Null).

BOOL IsNull() const;  

Return Value

TRUE if width and height are empty; otherwise FALSE.

Converts CD2DSizeF to CSize object.

operator CSize();

Return Value

Current value of D2D size.

Classes

Show: