---
UID: NE:d2d1effects.D2D1_POINTDIFFUSE_SCALE_MODE
title: D2D1_POINTDIFFUSE_SCALE_MODE (d2d1effects.h)
description: The interpolation mode the Point-diffuse lighting effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed.
old-location: direct2d\d2d1_pointdiffuse_scale_mode.htm
tech.root: Direct2D
ms.assetid: 552CCE58-0D79-468C-831D-EBEFE2F87F95
ms.date: 12/05/2018
ms.keywords: D2D1_POINTDIFFUSE_SCALE_MODE, D2D1_POINTDIFFUSE_SCALE_MODE enumeration [Direct2D], D2D1_POINTDIFFUSE_SCALE_MODE_ANISOTROPIC, D2D1_POINTDIFFUSE_SCALE_MODE_CUBIC, D2D1_POINTDIFFUSE_SCALE_MODE_HIGH_QUALITY_CUBIC, D2D1_POINTDIFFUSE_SCALE_MODE_LINEAR, D2D1_POINTDIFFUSE_SCALE_MODE_MULTI_SAMPLE_LINEAR, D2D1_POINTDIFFUSE_SCALE_MODE_NEAREST_NEIGHBOR, d2d1effects/D2D1_POINTDIFFUSE_SCALE_MODE, d2d1effects/D2D1_POINTDIFFUSE_SCALE_MODE_ANISOTROPIC, d2d1effects/D2D1_POINTDIFFUSE_SCALE_MODE_CUBIC, d2d1effects/D2D1_POINTDIFFUSE_SCALE_MODE_HIGH_QUALITY_CUBIC, d2d1effects/D2D1_POINTDIFFUSE_SCALE_MODE_LINEAR, d2d1effects/D2D1_POINTDIFFUSE_SCALE_MODE_MULTI_SAMPLE_LINEAR, d2d1effects/D2D1_POINTDIFFUSE_SCALE_MODE_NEAREST_NEIGHBOR, direct2d.d2d1_pointdiffuse_scale_mode
f1_keywords:
- d2d1effects/D2D1_POINTDIFFUSE_SCALE_MODE
dev_langs:
- c++
req.header: d2d1effects.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- HeaderDef
api_location:
- d2d1effects.h
api_name:
- D2D1_POINTDIFFUSE_SCALE_MODE
targetos: Windows
req.typenames: D2D1_POINTDIFFUSE_SCALE_MODE
req.redist: 
ms.custom: 19H1
---

# D2D1_POINTDIFFUSE_SCALE_MODE enumeration


## -description


The interpolation mode the <a href="https://docs.microsoft.com/windows/desktop/Direct2D/point-diffuse-lighting">Point-diffuse lighting effect</a> 
        uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed


## -enum-fields




### -field D2D1_POINTDIFFUSE_SCALE_MODE_NEAREST_NEIGHBOR

Samples the nearest single point and uses that. This mode uses less processing time, but outputs the lowest quality image.


### -field D2D1_POINTDIFFUSE_SCALE_MODE_LINEAR

Uses a four point sample and linear interpolation. This mode outputs a higher quality image than nearest neighbor.


### -field D2D1_POINTDIFFUSE_SCALE_MODE_CUBIC

Uses a 16 sample cubic kernel for interpolation. This mode uses the most processing time, but outputs a higher quality image. 


### -field D2D1_POINTDIFFUSE_SCALE_MODE_MULTI_SAMPLE_LINEAR

Uses 4 linear samples within a single pixel for good edge anti-aliasing. This mode is good for scaling down by small amounts on images with few pixels.


### -field D2D1_POINTDIFFUSE_SCALE_MODE_ANISOTROPIC

Uses anisotropic filtering to sample a pattern according to the transformed shape of the bitmap.


### -field D2D1_POINTDIFFUSE_SCALE_MODE_HIGH_QUALITY_CUBIC

Uses a variable size high quality cubic kernel to perform a pre-downscale the image if downscaling is involved in the transform matrix. Then uses the cubic interpolation mode for the final output.


### -field D2D1_POINTDIFFUSE_SCALE_MODE_FORCE_DWORD



