Files
milsko/examples/image.c
NishiOwO 0fd866977b new constant
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@252 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-10-10 11:45:27 +00:00

26 lines
676 B
C

/* $Id$ */
#include <Mw/Milsko.h>
int main() {
MwWidget window = MwVaCreateWidget(MwWindowClass, "window", NULL, MwDEFAULT, MwDEFAULT, 500, 500,
MwNtitle, "image image",
NULL);
MwWidget image = MwCreateWidget(MwImageClass, "image", window, 50, 50, 200, 400);
MwWidget image2 = MwCreateWidget(MwImageClass, "image", window, 250, 50, 200, 400);
MwLLPixmap px = MwLoadImage(window, "examples/picture.png");
MwLLPixmap px2 = MwLoadImage(window, "examples/picture.jpg");
MwVaApply(window,
MwNiconPixmap, px,
NULL);
MwVaApply(image,
MwNpixmap, px,
NULL);
MwVaApply(image2,
MwNpixmap, px2,
NULL);
MwLoop(window);
}