Thanks for sending the whole program. I would say that the original
problem from the beginning of this thread is probably best considered
a bug in 'bitmap'.
Noel's code is how I would work around it, but I would do this instead:
(define-runtime-path img-fn "programming/dct/cauliflower.jpg")
(d
Here is a working solution, where I have replaced the hero with a
picture I had on my hard disk:
#lang racket
(require 2htdp/universe)
(require 2htdp/image)
(require racket/gui/base)
(require racket/runtime-path)
(define-runtime-path here ".")
(define cauliflower
(make-object image-snip%
I think you must be using a different library. What library are you
using to get the bitmap binding?
Robby
On Sat, Oct 9, 2010 at 8:38 AM, 김태윤 wrote:
> thank you for your replying
> but it still doesn't work.
> (define-runtime-path run-bmp-path "run.bmp")
> (define run-bitmap (bitmap run-bmp-pat
thank you for your replying
but it still doesn't work.
(define-runtime-path run-bmp-path "run.bmp")
(define run-bitmap (bitmap run-bmp-path))
>bitmap: could not find the run-bmp-path collection in: (bitmap
run-bmp-path)
what's wrong with me?
2010/10/9 Matthew Flatt
> At Sat, 9 Oct 2010 16:28:58
At Sat, 9 Oct 2010 16:28:58 +0900, 김태윤 wrote:
> hello.
> thank you for your kindness
> the following code
> (define-runtime-path here ".")
> (define here
> (bitmap
>(path->string (build-path here "run.bmp"
> doesn't work
I recommend instead
(define-runtime-path run-bmp-path "run.bmp")
hello.
thank you for your kindness
the following code
(define-runtime-path here ".")
(define here
(bitmap
(path->string (build-path here "run.bmp"
doesn't work
"the error saya module: duplicate definition for identifier in: here"
so when I change the (define here ~ to (define hero ~
then an
On Sat, Oct 9, 2010 at 2:40 AM, 김태윤 wrote:
There is a transcription error. This
> (define-runtime-path hero ".")
should be
(define-runtime-path here ".")
here, not hero. We are defining a path called "here" that specifies
the path where the code is stored. I.e. here.
> (define hero
> (bitma
hello
I stuck at defining an image with relative path
when I define as (define image (bitmap "run.bmp")), it works only in my
computer
because there is no run.bmp in other people's computer with exactly same
path
and the compiler does not seems to include the image in the distribution
file
but ju
I made an error.
This
> (define hero (build-path hero "run.bmp"))
should be
(define hero
(bitmap
(path->string (build-path hero "run.bmp"
HTH,
N.
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
hello
after I define as
(define-runtime-path hero ".")
(define hero (build-path hero "run.bmp"))
and then
when I try to use it with place-image,
place-image: expected as first argument, given: #
appears
what's wrong with me?
thanks in advanced.
2010/10/9 Noel Welsh
> define-runtime-path is
define-runtime-path is your friend. Put the images in the same
directory as your code, then
(define-runtime-path here ".")
(define hero (build-path here "run.bmp"))
HTH,
N.
On Fri, Oct 8, 2010 at 4:45 PM, 김태윤 wrote:
> hello.
> there is a problem when I make an executable file
> source is locat
hello.
there is a problem when I make an executable file
source is located at c:\
and run.bmp is located at c:\
so in c:\ there are
c:\traffic.rkt
c:\run.bmp
and
in the source file there is a line such as
(define hero (bitmap "run.bmp"))
and I make as an executable file
and execute it.
so far s
12 matches
Mail list logo