diff --git a/pkgs/draw-pkgs/draw-doc/scribblings/draw/bitmap-class.scrbl b/pkgs/draw-pkgs/draw-doc/scribblings/draw/bitmap-class.scrbl index c04047c7f5..8782f61b8a 100644 --- a/pkgs/draw-pkgs/draw-doc/scribblings/draw/bitmap-class.scrbl +++ b/pkgs/draw-pkgs/draw-doc/scribblings/draw/bitmap-class.scrbl @@ -76,7 +76,8 @@ When a @racket[bits] byte string is provided: Creates a monochrome @racket[height] is larger than 8 times the length of @racket[bits], @|MismatchExn|. -} +@history[#:changed "1.1" @elem{Added the @racket[backing-scale] +optional arguments.}]} @defmethod[(get-argb-pixels [x real?] [y real?] @@ -97,13 +98,18 @@ If the bitmap has a @tech{backing scale} other than @racket[1.0] and @racket[unscaled?] is true, then the result corresponds to the bitmap's pixels ignoring the @tech{backing scale}. In that case, @racket[x], @racket[y], @racket[width], and @racket[height] are -effectively in pixels instead of drawing units.} +effectively in pixels instead of drawing units. + +@history[#:changed "1.1" @elem{Added the @racket[#:unscaled?] +optional argument.}]} @defmethod[(get-backing-scale) (>/c 0.0)]{ -Returns the bitmap's @tech{backing scale}.} +Returns the bitmap's @tech{backing scale}. + +@history[#:added "1.1"]} @defmethod[(get-depth) @@ -330,7 +336,10 @@ A monochrome bitmap saved as @racket['png] without a mask bitmap If the bitmap has a @tech{backing scale} other than 1.0, then it is effectively converted to a single pixel per drawing unit before - saving unless @racket[unscaled?] is true.} + saving unless @racket[unscaled?] is true. + +@history[#:changed "1.1" @elem{Added the @racket[#:unscaled?] +optional argument.}]} @defmethod[(set-argb-pixels [x real?] @@ -351,7 +360,10 @@ If the bitmap has a @tech{backing scale} other than @racket[1.0] and @racket[unscaled?] is true, then pixel values are installed ignoring the @tech{backing scale}. In that case, @racket[x], @racket[y], @racket[width], and @racket[height] are effectively in pixels instead -of drawing units.} +of drawing units. + +@history[#:changed "1.1" @elem{Added the @racket[#:unscaled?] +optional argument.}]} @defmethod[(set-loaded-mask [mask (is-a?/c bitmap%)]) diff --git a/pkgs/draw-pkgs/draw-doc/scribblings/draw/draw-funcs.scrbl b/pkgs/draw-pkgs/draw-doc/scribblings/draw/draw-funcs.scrbl index 96d71fe617..0879a01721 100644 --- a/pkgs/draw-pkgs/draw-doc/scribblings/draw/draw-funcs.scrbl +++ b/pkgs/draw-pkgs/draw-doc/scribblings/draw/draw-funcs.scrbl @@ -47,7 +47,9 @@ backing-scale)], but this procedure is preferred because it defaults @racket[alpha?] in a more useful way. See also @racket[make-platform-bitmap] and @secref["Portability"]. -} + +@history[#:changed "1.1" @elem{Added the @racket[#:backing-scale] +optional argument.}]} @defproc[(make-brush @@ -166,7 +168,10 @@ When @racket[stipple] is @racket[#f], @racket[immutable?] is true, and Creates a bitmap that uses platform-specific drawing operations as much as possible, which is different than a @racket[make-bitmap] result -on Windows and Mac OS X. See @secref["Portability"] for more information.} +on Windows and Mac OS X. See @secref["Portability"] for more information. + +@history[#:changed "1.1" @elem{Added the @racket[#:backing-scale] +optional argument.}]} @defproc[(read-bitmap [in (or path-string? input-port?)] @@ -193,7 +198,10 @@ is not one of the @racketidfont{/mask} symbols, then @racket[read-bitmap] checks whether a file exists matching @racket[in] but with @filepath{@"@"2x} added to the name (before the file suffix, if any). If the @filepath{@"@"2x} path exists, it is used instead of -@racket[in], and @racket[backing-store] is multiplied by @racket[2].} +@racket[in], and @racket[backing-store] is multiplied by @racket[2]. + +@history[#:changed "1.1" @elem{Added the @racket[#:backing-scale] +and @racket[#:try-@2x?] optional arguments.}]} @defproc[(recorded-datum->procedure [datum any/c]) ((is-a?/c dc<%>) . -> . void?)]{