Skip to content

Latest commit

 

History

History
100 lines (65 loc) · 1.94 KB

cd2dsizef-class.md

File metadata and controls

100 lines (65 loc) · 1.94 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CD2DSizeF Class
CD2DSizeF Class
08/29/2019
CD2DSizeF
AFXRENDERTARGET/CD2DSizeF
AFXRENDERTARGET/CD2DSizeF::CD2DSizeF
AFXRENDERTARGET/CD2DSizeF::IsNull
CD2DSizeF [MFC], CD2DSizeF
CD2DSizeF [MFC], IsNull
f486a1e1-997d-4286-8cb9-26369dc82055

CD2DSizeF Class

A wrapper for D2D1_SIZE_F.

Syntax

class CD2DSizeF : public D2D1_SIZE_F;

Members

Public Constructors

Name Description
CD2DSizeF::CD2DSizeF Overloaded. Constructs a CD2DSizeF object from D2D1_SIZE_F object.

Public Methods

Name Description
CD2DSizeF::IsNull Returns a boolean value that indicates whether an expression contains no valid data (NULL).

Public Operators

Name Description
CD2DSizeF::operator CSize Converts CD2DSizeF to CSize object.

Inheritance Hierarchy

D2D1_SIZE_F

CD2DSizeF

Requirements

Header: afxrendertarget.h

CD2DSizeF::CD2DSizeF

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

CD2DSizeF::IsNull

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.

CD2DSizeF::operator CSize

Converts CD2DSizeF to CSize object.

operator CSize();

Return Value

Current value of D2D size.

See also

Classes