Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conception du modèle de gestion des BMP #5

Closed
Hagbuck opened this issue Oct 13, 2017 · 1 comment
Closed

Conception du modèle de gestion des BMP #5

Hagbuck opened this issue Oct 13, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@Hagbuck
Copy link
Owner

Hagbuck commented Oct 13, 2017

Les BMPs sont différents des PGM, il faut concevoir la structures qui va représenter en mémoire un BMP

@Hagbuck Hagbuck added the To Do label Oct 13, 2017
@Hagbuck Hagbuck added this to the BMP milestone Oct 13, 2017
This was referenced Oct 13, 2017
@Hagbuck Hagbuck added Doing and removed To Do labels Oct 21, 2017
@Hagbuck Hagbuck self-assigned this Oct 21, 2017
@Hagbuck
Copy link
Owner Author

Hagbuck commented Oct 23, 2017

Pour lecture de la taille width et height

                bmp->height = 0x0000;
                bmp->width = 0x0000;
                int i;
                
                for(i = 0; i < 4; ++i)
                {
                    bmp->width = bmp->width << 8;
                    bmp->width += bmp->biWidth[i];
                    
                    bmp->height = bmp->height << 8;
                    bmp->height += bmp->biHeight[i];  
                }

Les données sont dans les table biWidth et biHeight on prend donc la valeur binaire de la première case, puis on la décale de 8 bits, etc....

@Hagbuck Hagbuck added Done and removed Doing labels Nov 11, 2017
@Hagbuck Hagbuck closed this as completed Nov 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant