News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

gdi plus smoothingmode antialias

Started by Jimg, April 29, 2009, 05:07:08 PM

Previous topic - Next topic

Jimg

Anyone know the value for gdi plus smoothingmode antialias for calling GdipSetSmoothingMode?

And if so, where did you find it?

MichaelW

The value is available here under Enumerations, or from the SDK GdiPlusEnums.h as:

//--------------------------------------------------------------------------
// Quality mode constants
//--------------------------------------------------------------------------

enum QualityMode
{
    QualityModeInvalid   = -1,
    QualityModeDefault   = 0,
    QualityModeLow       = 1, // Best performance
    QualityModeHigh      = 2  // Best rendering quality
};

. . .

//---------------------------------------------------------------------------
// Smoothing Mode
//---------------------------------------------------------------------------

enum SmoothingMode
{
    SmoothingModeInvalid     = QualityModeInvalid,
    SmoothingModeDefault     = QualityModeDefault,
    SmoothingModeHighSpeed   = QualityModeLow,
    SmoothingModeHighQuality = QualityModeHigh,
    SmoothingModeNone,
    SmoothingModeAntiAlias
};

eschew obfuscation

Jimg

Thank you Michael.  I had to go figure out what enum meant, but it's all good.

It's a good thing it was explicitly shown as 4 at the place you posted the link to, because I would have guessed from the enum code it would have been 6.  I guess I'll never be comfortable with c systax.