Re: [racket] extract polygon information from an image is it silly thinking?

2010-10-10 Thread Richard Cleis
On Oct 10, 2010, at 7:28 AM, 김태윤 wrote: > extract polygon information from an image is it silly thinking? No. > hello > I was told that when it comes to compare with polygon and image rotating, > polygon is much faster. > and an obviously simple idea come across my mind. > then why don't I cha

Re: [racket] Freeing FFI resources

2010-10-10 Thread Jon Zeppieri
On Sun, Oct 10, 2010 at 5:40 PM, Eric Dobson wrote: > I am dealing with a foreign library that has functions that return > error messages in a char** input argument. These need to be explicitly > freed by calling another function. I figured out how to get them into > racket strings by using the _p

[racket] Freeing FFI resources

2010-10-10 Thread Eric Dobson
I am dealing with a foreign library that has functions that return error messages in a char** input argument. These need to be explicitly freed by calling another function. I figured out how to get them into racket strings by using the _ptr and the _string ctype. But I didn't see a way to capture t

Re: [racket] about image operation

2010-10-10 Thread Asumu Takikawa
On 2010-10-10 21:53:40 +0900, 김태윤 wrote: >I still wonder how kind of google earth rotate image very fast >anyway, thank you for your advice~! This won't directly help in your Racket code, but if you're interested in the technical details of how Google Earth works and why it's so efficient,

Re: [racket] the program can't find image file

2010-10-10 Thread Robby Findler
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

[racket] extract polygon information from an image is it silly thinking?

2010-10-10 Thread 김태윤
extract polygon information from an image is it silly thinking? hello I was told that when it comes to compare with polygon and image rotating, polygon is much faster. and an obviously simple idea come across my mind. then why don't I change image into much simpler colored polygon? feel like it is

Re: [racket] about image operation

2010-10-10 Thread Neil Van Dyke
김태윤 wrote at 10/10/2010 08:53 AM: I still wonder how kind of google earth rotate image very fast Search the Racket documentation and the Web for "opengl". -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.rack

Re: [racket] absolute path bug

2010-10-10 Thread 김태윤
hello thank you for your replying does your code works in your environment properly? it works properly when I run without compiling but when I try to compile, sort of error occur. so I change my style to (define hero (bitmap "location of image")) but it doesn't works either in other computer unless

Re: [racket] about image operation

2010-10-10 Thread 김태윤
I still wonder how kind of google earth rotate image very fast anyway, thank you for your advice~! 2010/10/10 Stephen Bloch > On Oct 10, 2010, at 4:17 AM, 김태윤 wrote: > > > there is little images(16x16) that cropped from other chipset > > and I gether them and make an image which size is about

[racket] How is Bill gates

2010-10-10 Thread 전장운
How is Bill gates _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] about image operation

2010-10-10 Thread Stephen Bloch
On Oct 10, 2010, at 4:17 AM, 김태윤 wrote: > there is little images(16x16) that cropped from other chipset > and I gether them and make an image which size is about 320 x 320 > > and I rotate it, but it is very very slow and blink alot This is because it really does take a lot of processing to rot

Re: [racket] absolute path bug

2010-10-10 Thread Stephen Bloch
It sounds like what you really want is an .exe file that contains the image directly, so you don't have to worry about what directory the .exe file or the .bmp file are in. Fortunately, DrRacket recognizes images as literals: you can just copy and paste an image into the source code. So if I w

[racket] absolute path bug

2010-10-10 Thread 김태윤
hello thank you for your replying and effort I am sorry to say like this unfortunately the following code working same as (bitmap "run.bmp") it means 1. sourcefile is in c:\ 2. run.bmp is in c:\ 3. make exe 4. it works! 5. but.. when I change both run.bmp and exe to other folder, it doesn't work 6

Re: [racket] the program can't find image file

2010-10-10 Thread Noel Welsh
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%

[racket] about image operation

2010-10-10 Thread 김태윤
hello there is little images(16x16) that cropped from other chipset and I gether them and make an image which size is about 320 x 320 and I rotate it, but it is very very slow and blink alot so I test basic polygon it works perfectly, no delay, no blinking, even if when it grows big the following