MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / imageToBase64

Function imageToBase64

Source/Core/CtrlrUtilitiesGUI.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15const String imageToBase64 (const Image &image)
16{
17 MemoryBlock memoryBlock;
18 MemoryOutputStream memoryStream(memoryBlock,true);
19 PNGImageFormat png;
20 png.writeImageToStream (image, memoryStream);
21
22 return (memoryBlock.toBase64Encoding());
23}
24
25const Justification justificationFromProperty(const var &justificationProperty)
26{

Callers

nothing calls this directly

Calls 2

toBase64EncodingMethod · 0.80
writeImageToStreamMethod · 0.45

Tested by

no test coverage detected