Skip to content

Latest commit

 

History

History
118 lines (92 loc) · 2.42 KB

File metadata and controls

118 lines (92 loc) · 2.42 KB
title CD2DSizeF Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
f1_keywords
CD2DSizeF
AFXRENDERTARGET/CD2DSizeF
AFXRENDERTARGET/CD2DSizeF::CD2DSizeF
AFXRENDERTARGET/CD2DSizeF::IsNull
dev_langs
C++
helpviewer_keywords
CD2DSizeF class
ms.assetid f486a1e1-997d-4286-8cb9-26369dc82055
caps.latest.revision 18
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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