Uses the same optimization thresholds as Speed mode, but uses trilinear filtering.ĭ2D1_DIRECTIONALBLUR_OPTIMIZATION_QUALITY Uses linear filtering.ĭ2D1_DIRECTIONALBLUR_OPTIMIZATION_BALANCED The default value is D2D1_BORDER_MODE_SOFT.Īpplies internal optimizations such as pre-scaling at relatively small radii. The type is D2D1_GAUSSIANBLUR_BORDER_MODE. The mode used to calculate the border of the image, soft or hard. The default value is D2D1_GAUSSIANBLUR_OPTIMIZATION_BALANCED.īorderMode D2D1_GAUSSIANBLUR_PROP_BORDER_MODE The type is D2D1_GAUSSIANBLUR_OPTIMIZATION. Optimization D2D1_GAUSSIANBLUR_PROP_OPTIMIZATION A value of zero DIPs disables this effect entirely. The units of both the standard deviation and blur radius are DIPs. You can compute the blur radius of the kernel by multiplying the standard deviation by 3. The amount of blur to be applied to the image. StandardDeviation D2D1_GAUSSIANBLUR_PROP_STANDARD_DEVIATION M_d2dContext->DrawImage(gaussianBlurEffect.Get()) Įffect properties Display name and index enumeration GaussianBlurEffect->SetValue(D2D1_GAUSSIANBLUR_PROP_STANDARD_DEVIATION, 3.0f) M_d2dContext->CreateEffect(CLSID_D2D1GaussianBlur, &gaussianBlurEffect) The CLSID for this effect is CLSID_D2D1GaussianBlur. This effect is used by the built-in Shadow effect. You can use the output of this effect for input into lighting effects, like the Specular Lighting or Diffuse Lighting effects, because the alpha channel is blurred, too and lighting effects use the alpha channel to determine surface geometry as a height map. It is useful in photo processing for filters like highlights and shadows. You can use this effect to create glows and drop shadows and use the composite effect to apply the result to the original image. Use the Gaussian blur effect to create a blur based on the Gaussian function over the entire input image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |