Thanks, EvilSOB, but Espér is correct, what I plan to do is this:


Red area is the bitmap,
Black border is the window,
and the center_x and center_y are the center of the bitmap.