Skip to content

Console output images, supporting multiple formats such as png, jpg, gif, bmp, etc. (only on Windows)

Notifications You must be signed in to change notification settings

jwping/terminal-img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TerminalImg

Console output images, supporting multiple formats such as png, jpg, gif, bmp, etc. (only on Windows)

usage

Support two methods: console direct output and pop-up window display of images, respectively

// windowName: window title
// windowX: X-axis offset
// windowY: Y-axis offset
// windowWidth: Window Width
// windowHeight: window Height
// img_path: Image Path
if (PopImg("terminal-img", 0, 0, 500, 500, "1.gif") != 0) {
	printf("Picture pop-up failed!\n");
}

// img_path: Image Path
// offsetX: X-axis offset
// offsetY: Y-axis offset
if (ConsoleImg("1.gif", 0, 0) != 0) {
	printf("Console image output failed!\n");
}

About

Console output images, supporting multiple formats such as png, jpg, gif, bmp, etc. (only on Windows)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published