Windows Bitmap Spezifikation



  • Wikipedia schrieb:

    Die Bilddaten beginnen am Offset bfOffBits. Die Größe der Bilddaten beträgt biWidth×biHeight×biBitCount/8 wenn biCompression=BI_RGB, ansonsten biSizeImage.

    Was ist damit gemeint? Etwa:

    if( biCompression = BI_RGB )
        stride = biWidth×biHeight×biBitCount/8;
    else
        stride = biWidth×biHeight×biSizeImage;
    

    oder:

    if( biCompression = BI_RGB )
        stride = biWidth×biHeight×biBitCount/8;
    else
        stride = biWidth×biHeight×biBitCount/8*biSizeImage;
    

    oder:

    if( biCompression = BI_RGB )
        stride = biWidth×biHeight×biBitCount/8;
    else
        stride = biWidth×biHeight×biSizeImage;
    

    oder:

    if( biCompression = BI_RGB )
        stride = biWidth×biHeight×biBitCount/8;
    else
        stride = biSizeImage;
    

    Und das ist nicht die einzige Stelle in dem Artikel die unschlüssig und unverständlich geschrieben ist. 👎



  • Schon rausbekommen:
    Wenn die Kompression nicht BI_RGB ist, dann ist biSizeImage die Anzahl der Bilddaten in Byte. Naja, trotzdem schlecht-strukturierter Artikel.


Anmelden zum Antworten