What's the simplest possible way to create a bitmap in memory and draw something on it? I spend a couple of hours yesterday trying to figure this out. I couldn't find any examples in the image, so I'm probably just blind. Thanks, -Carl You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Carl,
there must be a example somewhere. I am not able to access a VASmalltalk environment, abut you should load as much as possible of the configurationmaps you can find ;-) There should be an example on clipping,....or also transparency masks,.... CgDrawable should be the candidate for a first investigation. You just need a buffer and draw on it,... later you can decide to flush/clip or do what ever with it. I will have a look tonight. Drrawing is dead simple.... Sebastian -- You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
In reply to this post by Carl Gundel-2
Am 19.02.2014 06:47, schrieb Carl Gundel:
> What's the simplest possible way to create a bitmap in memory and draw > something on it? I spend a couple of hours yesterday trying to figure > this out. I couldn't find any examples in the image, so I'm probably > just blind. > Thanks, > -Carl > -- > You received this message because you are subscribed to the Google > Groups "VA Smalltalk" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email]. > To post to this group, send email to [hidden email]. > Visit this group at http://groups.google.com/group/va-smalltalk. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
In reply to this post by SebastianHC
Hey Sebastian, Any help appreciated. I'm sure it's easy once you know how. I did try a few things but I would just get one error after another that I would need to work past. Then I finally realized that I must be going completely down the wrong path. Why should it be hard to create a bitmap (pixmap?) in memory, not associated with a window, and just draw some text or a circle or something else on it? Should be a half dozen lines of code, right? The pixmap needed a server, then it needed a screen, and then it needed a display. Seems overly complicated. Then after all that and more it still didn't work. Thanks, -Carl On Wednesday, February 19, 2014 11:22:49 AM UTC-5, Sebastian Heidbrink wrote: Hi Carl, You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Carl, Is this what you are looking for? | i | It is just black/white but you can use other depths and palettes. Lou
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Louis, Thanks, but the CgDeviceIndependentImage doesn't seem to be be able to do much aside from getting and setting pixels. I'm trying to use CgDrawable and its subclasses because they can draw text, lines, circles, other images, etc. -Carl On Wednesday, February 19, 2014 1:54:52 PM UTC-5, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Carl,
you should have a look here: http://www.instantiations.com/docs/86/wwhelp/wwhimpl/js/html/wwhelp.htm#href=pr/stpr238.html and here: http://www.instantiations.com/docs/86/wwhelp/wwhimpl/js/html/wwhelp.htm#href=pr/stpr210.html In the end it is really very strasight forward. just search the online help for CgDrawable and CgPixmap. Maybe you want to share what you exactly try to accomplish and I'll have closer look at it... Sebastian -- You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Thanks Sebastian, I'll work through those examples. I'm confused that CgWindow default is referenced. I don't want to use a window. I am trying to draw bitmaps, and composite bitmaps together. -Carl On Thursday, February 20, 2014 12:56:07 AM UTC-5, Sebastian Heidbrink wrote: Hi Carl, You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Administrator
|
Carl, you should read the entire Common Graphics section (http://www.instantiations.com/docs/86/wwhelp/wwhimpl/js/html/wwhelp.htm#href=pr/stpr192.html).
-- It will answer a lot of your questions, excepting perhaps the "Exactly how do I do X?" variety. On Thursday, February 20, 2014 7:16:47 AM UTC-8, Carl Gundel wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
I was not able to find that information using the Help menu in VA Smalltalk. All I see under Help is: VA Smalltalk Home Page VA Smalltalk Forum About VA Smalltalk None of those seems to take me to the documentation you are pointing me to. Then I tried to find what I could by using Google and by asking here. -Carl On Thursday, February 20, 2014 1:31:13 PM UTC-5, Richard Sargent wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Administrator
|
>> I was not able to find that information using the Help menu in VA Smalltalk. I'm not sure what Help menu you mean. However, since I posted a URL for Instantiations' online documentation, you should click on that link. It will take you to the beginning of the section called "Common Graphics".http://www.instantiations.com/docs/86/wwhelp/wwhimpl/js/html/wwhelp.htm#href=pr/stpr192.html On Thu, Feb 20, 2014 at 2:46 PM, Carl Gundel <[hidden email]> wrote:
--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Thanks for the link. The Help menu is on the System Transcript window. -Carl On Thursday, February 20, 2014 6:21:54 PM UTC-5, Richard Sargent wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Free forum by Nabble | Edit this page |