-
1. Re: How to draw a art to staitc item of dialog
A. Patterson Oct 5, 2010 7:01 AM (in response to starnight1981)Its doable, but its a lot of work. First, you'd have to rasterize the art you want to show using the AIRasterizeSuite. This will produce a kRasterArt object. From that, you can use the AIRasterSuite to pull the image data (quite raw) and then move that into an ADMImage -- then you draw that. Don't forget the delete the kRasterArt after you're done, unless you want them littering the canvas
-
2. Re: How to draw a art to staitc item of dialog
starnight1981 Oct 7, 2010 8:47 AM (in response to A. Patterson)Is it possible to use AIDrawArtSuite ?
-
3. Re: How to draw a art to staitc item of dialog
A. Patterson Oct 15, 2010 6:48 AM (in response to starnight1981)I know DrawThumbnail doesn't work -- it requires some things we don't have access to unfortunately. I haven't used anything else in there except DrawHilite(), which I believe does work.
-
4. Re: How to draw a art to staitc item of dialog
starnight1981 Oct 15, 2010 2:31 AM (in response to A. Patterson)you can use the AIRasterSuite to pull the image data (quite raw) and then move that into an ADMImage
how to use the AIRasterSuite to pull the image data (quite raw) and then move that into an ADMImage ?
-
5. Re: How to draw a art to staitc item of dialog
A. Patterson Oct 15, 2010 7:30 AM (in response to starnight1981)Its been a while, but I think -- in a nutshell -- you basically pull out the pixel data pixel-by-pixel & write it out in a new ADMIMage pixel-by-pixel. So long as you're doing it constantly, it should be pretty quick. You'll have to deal with scaling though, might be able to solve that by resizing the raster to the size you want before you pull out the pixels.
-
6. Re: How to draw a art to staitc item of dialog
starnight1981 Oct 15, 2010 11:09 AM (in response to A. Patterson)Thank you ,could you give some sample code?
-
7. Re: How to draw a art to staitc item of dialog
A. Patterson Oct 15, 2010 11:17 AM (in response to starnight1981)I'm afraid not -- not allowed to post internal code That said, adding pixels to ADMImages is extremely straight forward (exactly like you would expect). The code for dealing with rasters (in paritcular, the AIRasterSuite) will take some reading though. I reccommend searching for help on that here and then reading the documentation. There might be an example in the SDK, I can't remember.


