logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementIconImageLimits

    The size a pulled icon may declare, judged from its header before anything decodes it: the one rule the download check and the file writer both ask, so a small file that declares enormous dimensions never reaches a decoder.

    Inheritance
    object
    AchievementIconImageLimits
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Achievements.Application.Sync
    Assembly: Serenity.Achievements.Application.dll
    Syntax
    public static class AchievementIconImageLimits

    Fields

    MaxSideInPixels

    The most pixels either side of a pulled icon may have.

    Declaration
    public const int MaxSideInPixels = 1024
    Field Value
    Type Description
    int

    Methods

    RefusalFor(byte[])

    Judges the size an image declares.

    Declaration
    public static string RefusalFor(byte[] imageBytes)
    Parameters
    Type Name Description
    byte[] imageBytes

    A PNG or JPEG file.

    Returns
    Type Description
    string

    Why the image is refused, or empty when it declares a size within the limit.

    In this article
    © 2026 Serenity. All Rights Reserved