Place Top image over this image at PosX,PosY * Lowest means final image is opaque * else transparency will be multiplied */
| 235 | * else transparency will be multiplied |
| 236 | */ |
| 237 | void XImage::Compose(INTN PosX, INTN PosY, const XImage& TopImage, bool Lowest, float topScale) |
| 238 | { |
| 239 | EG_RECT OutPlace; |
| 240 | OutPlace.XPos = PosX; |
| 241 | OutPlace.YPos = PosY; |
| 242 | OutPlace.Width = GetWidth(); |
| 243 | OutPlace.Height = GetHeight(); |
| 244 | |
| 245 | EG_RECT Area; |
| 246 | Area.XPos = 0; |
| 247 | Area.YPos = 0; |
| 248 | Area.Width = TopImage.GetWidth(); |
| 249 | Area.Height = TopImage.GetHeight(); |
| 250 | Compose(OutPlace, Area, TopImage, Lowest, topScale); |
| 251 | } |
| 252 | // TopScale is for scaling TopImage. = 0.f means no scale or = 1.f |
| 253 | // InPlace is a place in TopImage before scaling |
| 254 | void XImage::Compose(const EG_RECT& OutPlace, const EG_RECT& InPlace, const XImage& TopImage, bool Lowest, float TopScale) |
no test coverage detected