/usr/share/doc/xviewg/examples/extensions/bitmap.c is in xview-examples 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | /* bitmap.c -- demonstrate the use of the Bitmap package. */
#include <xview/xview.h>
#include <xview/cms.h>
#include "bitmap.h"
main(argc, argv)
char *argv[];
{
Frame frame;
Cms cms;
Bitmap bitmap;
xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
if (argc <= 1)
puts("Specify bitmap filename"), exit(1);
frame = (Frame)xv_create(NULL, FRAME, NULL);
cms = xv_create(NULL, CMS,
CMS_SIZE, 2,
CMS_NAMED_COLORS, "LightBlue", "maroon", NULL,
NULL);
bitmap = xv_create(frame, BITMAP,
XV_WIDTH, 100,
XV_HEIGHT, 100,
WIN_CMS, cms,
BITMAP_FILE, argv[1],
NULL);
window_fit(frame);
xv_main_loop(frame);
}
|