AGI STK Graphics 11Send comments on this topic.
InitializeWithMinificationAndMagnification Method (IAgStkGraphicsTextureFilter2DFactory)
See Also 
MinificationFilter
A minification filter.
MagnificationFilter
A magnification filter.
Windows






Windows & Linux

Description

Creates a texture filter using the specified minification/magnification options.

Syntax

[Visual Basic .NET]
Public Function InitializeWithMinificationAndMagnification( _
   ByVal MinificationFilter As AgEStkGraphicsMinificationFilter, _
   ByVal MagnificationFilter As AgEStkGraphicsMagnificationFilter _
) As IAgStkGraphicsTextureFilter2D
[Unmanaged C++]
public: HRESULT InitializeWithMinificationAndMagnification(
   AgEStkGraphicsMinificationFilter MinificationFilter,
   AgEStkGraphicsMagnificationFilter MagnificationFilter,
   IAgStkGraphicsTextureFilter2D ** ReturnValue
);

Parameters

MinificationFilter
MemberValueDescription
eStkGraphicsMinificationFilterNearest0Use the texel that is closest to the center of the pixel being textured.
eStkGraphicsMinificationFilterLinear1Use the weighted average of the four (for 2D textures, two for 1D textures) texels that are closest to the center of the pixel being textured.
eStkGraphicsMinificationFilterNearestMipMapNearest2Use the mipmap that most closely matches the size of the pixel being textured. Then use the texel from that mipmap that is closest to the center of the pixel being textured.
eStkGraphicsMinificationFilterLinearMipMapNearest3Use the mipmap that most closely matches the size of the pixel being textured. Then use the weighted average of the four (for 2D textures, two for 1D textures) texels from that mipmap that are closest to the center of the pixel being textured.
eStkGraphicsMinificationFilterNearestMipMapLinear4Use the two mipmaps that most closely match the size of the pixel being textured. Determine the texel that is closest to the center of the pixel being textured in each mipmap. The final texture value is a weighted average of these two texels.
eStkGraphicsMinificationFilterLinearMipMapLinear5Use the two mipmaps that most closely match the size of the pixel being textured. Determine the weighted average of the four (for 2D textures, two for 1D textures) texels that are closest to the center of the pixel being textured in each mipmap. The final texture value is a weighted average of these two texels.
A minification filter.
MagnificationFilter
MemberValueDescription
eStkGraphicsMagnificationFilterNearest0Use the texel that is closest to the center of the pixel being textured. This usually faster than Linear but can produce images with sharper edges.
eStkGraphicsMagnificationFilterLinear1Use the weighted average of the four texels that are closest to the center of the pixel being textured.
A magnification filter.

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.