MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / renderImage

Method renderImage

src/render/render.cpp:786–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786void Render::renderImage(Image* dst_image, const Image* src_image,
787 const Palette* pal,
788 int x, int y,
789 Zoom zoom, int opacity, BlendMode blendMode)
790{
791 CompositeImageFunc compositeImage = get_image_composition(
792 dst_image->pixelFormat(),
793 src_image->pixelFormat(), zoom);
794 if (!compositeImage)
795 return;
796
797 compositeImage(dst_image, src_image, pal,
798 gfx::Clip(x, y, 0, 0,
799 zoom.apply(src_image->width()),
800 zoom.apply(src_image->height())),
801 opacity, blendMode, zoom);
802}
803
804void Render::renderLayer(
805 const Layer* layer,

Callers 2

composite_imageFunction · 0.80
onPaintFunction · 0.80

Calls 9

get_image_compositionFunction · 0.85
srcBoundsMethod · 0.80
ClipClass · 0.70
pixelFormatMethod · 0.45
applyMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45
createIntersectionMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected