{"size": 1087, "ext": "scrbl", "max_stars_repo_path": "gui-doc/mrlib/scribblings/include-bitmap.scrbl", "max_stars_repo_name": "jjsimpso/gui", "max_stars_repo_stars_event_min_datetime": "2015-03-17T22:11:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-12T15:09:34.000Z", "max_issues_repo_path": "gui-doc/mrlib/scribblings/include-bitmap.scrbl", "max_issues_repo_name": "jjsimpso/gui", "max_issues_repo_issues_event_min_datetime": "2015-01-09T15:53:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T16:21:29.000Z", "max_forks_repo_path": "gui-doc/mrlib/scribblings/include-bitmap.scrbl", "max_forks_repo_name": "jjsimpso/gui", "max_forks_repo_forks_event_min_datetime": "2015-01-08T13:03:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-26T21:49:09.000Z"}
{"max_stars_count": 65, "max_issues_count": 231, "max_forks_count": 89, "avg_line_length": 33.96875, "max_line_length": 78, "alphanum_fraction": 0.739650414}
#lang scribble/doc
@(require "common.rkt"
          (for-label mrlib/include-bitmap scheme/runtime-path scheme/include))

@title{Include Bitmap}

@defmodule[mrlib/include-bitmap]{The @racket[include-bitmap] form
takes a filename containing a bitmap and ``inlines'' the bitmap into
the program.}

Historically, the advantage of inlining the bitmap is that a
stand-alone executable can be created that contains the bitmap and
does not refer to the original image file. The
@racket[define-runtime-path] form, however, now provides a better
alternative.

@defform*[[(include-bitmap path-spec)
           (include-bitmap path-spec type-expr)]]{


The @racket[path-spec] is the same as for @racket[include] form. The
@racket[type-expr] should produce @racket['unknown],
@racket['unknown/mask], etc., as for @racket[bitmap%], and the default
is @racket['unknown/mask].}


@defform*[[(include-bitmap/relative-to source path-spec)
           (include-bitmap/relative-to source path-spec [type-expr])]]{

Analogous to @racket[include-at/relative-to], though only a source is
needed (no context).}
