Getting a bitmap to display with the proper dimensions
- To: mathgroup at smc.vnet.net
- Subject: [mg13071] Getting a bitmap to display with the proper dimensions
- From: "Barthelet, Luc" <lucb at ea.com>
- Date: Sat, 4 Jul 1998 16:45:11 -0400
- Sender: owner-wri-mathgroup at wolfram.com
If I have a RasterArray an I want to display it such as to get a one to one mapping of my elements to the pixels in the notebook. here is an example that works: Show[Graphics[RasterArray[Table[GrayLevel[Mod[i+j,2]],{i,50},{j,40}]]], AspectRatio->Automatic,ImageSize->{40+3,50+9}] as you see I had to add 3 and 9. those numbers are working for 40 and 50 as the dimensions. in practice I have to do trial and error to figure what they need to be.It changes with a lot of options.For example add Axes->True and try to get a one to one mapping again. Is there an option or a formula that could make this an easier process? thanks.