bool cSPGraphic::IsIn(cVector2i PointInScene, bool AlphaCheck) const{
cVector2i PointInLocal = ToLocal(PointInScene); // 좌표를 지역 좌표계로 변경한다.
if(!Picture.IsNull()){
if(cRecti(DrawOffset, Picture.GetSize()).IsIn(PointInLocal)){
if(AlphaCheck)
return Picture.GetPixel(PointInLocal).a != 0;
return true;
}
}
return false;//cRecti(Size).IsIn(Point);
}
ToLocal 할 때 좌표가 이상하게 바뀌는듯 보임.