yep thanks i read that but i read this its a lot of slow that because i ask for something for doing that fast, but i resolve the problem.
I can modified that before store in memory adding “-” in the header
< bi.biHeight = bmp.bmHeight;
bi.biHeight = - bmp.bmHeight;
And that solve the problem, i can use normally memcpy .
Nothing like ask for help for found the answer by oneself lol