API Reference > imodeljs-frontend > Views > Viewport > antialiasSamples antialiasSamples Accessor The number of antialiasing samples to be used when rendering the contents of the viewport. Must be an integer greater than zero. A value of 1 means antialiasing is disabled. A higher number of samples correlates generally to a higher quality image but is also more demanding on the graphics hardware. antialiasSamples: number Returns - number Setter The number of antialiasing samples to be used when rendering the contents of the viewport. Must be an integer greater than zero. A value of 1 means antialiasing is disabled. A higher number of samples correlates generally to a higher quality image but is also more demanding on the graphics hardware. antialiasSamples(numSamples: number): void Parameter Type Description numSamples number Returns - void Defined in core/frontend/src/Viewport.ts Line 581 Last Updated: 12 June, 2024