Frederick Cheung wrote: > On Sep 19, 3:11�pm, Abder-Rahman Ali <[email protected]> wrote: >> </canvas> > What's wrong with <%= some_object.width %> ? > > Fred
I tried: <canvas id="draw" height = "@dicom.height" width= "@dicom.width"> </canvas> But, I don't the expected dimensions. As when I calculated the dimensions using this Javascript function: I found that the image width and height is 512x512, and the displayed image is not correct, as when I manually enter the height and width values in the "Canvas", I get a larger image that the one I'm getting. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

