MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / LoadImage

Function LoadImage

Applications/LemonPaint/main.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68};
69
70void LoadImage(char* path){
71 if(!path){
72 Lemon::GUI::DisplayMessageBox("LemonPaint", "Invalid Filepath");
73 return;
74 }
75
76 if(canvas->surface.buffer){
77 free(canvas->surface.buffer);
78 }
79
80 Lemon::Graphics::LoadImage(path, &canvas->surface);
81
82 canvas->ResetScrollbars();
83}
84
85void SaveImage(char* path){
86 if(!path){

Callers 1

OnOpenFunction · 0.70

Calls 2

DisplayMessageBoxFunction · 0.85
ResetScrollbarsMethod · 0.80

Tested by

no test coverage detected