MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / Compose

Method Compose

rEFIt_UEFI/libeg/XImage.cpp:237–251  ·  view source on GitHub ↗

Place Top image over this image at PosX,PosY * Lowest means final image is opaque * else transparency will be multiplied */

Source from the content-addressed store, hash-verified

235 * else transparency will be multiplied
236 */
237void 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
254void XImage::Compose(const EG_RECT& OutPlace, const EG_RECT& InPlace, const XImage& TopImage, bool Lowest, float TopScale)

Callers 9

DrawMenuTextMethod · 0.80
ScrollingBarMethod · 0.80
DrawMainMenuLabelMethod · 0.80
DrawMainMenuEntryMethod · 0.80
RenderTextMethod · 0.80
DrawMethod · 0.80
DrawOnBackMethod · 0.80
EnsureImageSizeMethod · 0.80
ClearScreenMethod · 0.80

Calls 5

GetWidthMethod · 0.80
GetHeightMethod · 0.80
setSizeInPixelsMethod · 0.80
CopyScaledMethod · 0.80
GetWidthFunction · 0.50

Tested by

no test coverage detected