libjpeg/libpng or stb_image
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@185 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
26a522d035
commit
462821334f
139 changed files with 106549 additions and 7999 deletions
|
|
@ -5,8 +5,10 @@ int main() {
|
|||
MwWidget window = MwVaCreateWidget(MwWindowClass, "window", NULL, 0, 0, 500, 500,
|
||||
MwNtitle, "image image",
|
||||
NULL);
|
||||
MwWidget image = MwCreateWidget(MwImageClass, "image", window, 50, 50, 400, 400);
|
||||
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,
|
||||
|
|
@ -15,6 +17,9 @@ int main() {
|
|||
MwVaApply(image,
|
||||
MwNpixmap, px,
|
||||
NULL);
|
||||
MwVaApply(image2,
|
||||
MwNpixmap, px2,
|
||||
NULL);
|
||||
|
||||
MwLoop(window);
|
||||
}
|
||||
|
|
|
|||
BIN
examples/picture.jpg
Normal file
BIN
examples/picture.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue