123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|346|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> PMC - Draw to Image?

Tue, 11 Dec 2012, 04:12
spinal
Did I read somewhere that in PMC you can draw onto an image?

-=-=-
Check out my excellent homepage!
Tue, 11 Dec 2012, 04:12
Jayenkai
You used to be able to grab the current canvas, but I think incompatibility issues might've made DD remove that feature.

-=-=-
''Load, Next List!''
Tue, 11 Dec 2012, 08:11
JL235
You could never grab the current canvas. You could however grab a copy, using getScreenshot() (that should really be under graphics rather than utility). It copies the screen to a new image, and returns it.

However the proper way is to just create an image, and draw to it. All of the global graphics commands area available as methods for the Image class.

For example ...


Tue, 11 Dec 2012, 08:26
Jayenkai
You can tell I don't read instructions, can't you! *Jay continues to fumble through PMC, adding ;s to the ends of his lines*

-=-=-
''Load, Next List!''
Tue, 11 Dec 2012, 10:20
steve_ancell
You're not the only one Jay, I don't read instructions in any great detail either.
Tue, 11 Dec 2012, 10:30
Afr0
That's why I love coding in languages that aren't proprietary;
once I know the basics, I can Google my way to 98% of the stuff I'm wondering about.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 11 Dec 2012, 11:00
JL235
It's about as propriety as Java, or C#. Both of them were developed by one company, and initially closed source (and Quby is open source now).
Tue, 11 Dec 2012, 12:02
Afr0
"Proprietary" in the sense that Java and C# has millions of users and hundreds of thousands of tutorials and/or previously asked questions on any given aspect.

Real world example: Just now I was wonder which was faster: Dictionary.ContainsKey() or Dictionary.TryGetValue()
Because of C#'s widespread usage, I didn't have to time the (assumed) bottleneck myself - I could just google it.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 11 Dec 2012, 17:05
JL235
That's not the definition of proprietary.
Tue, 11 Dec 2012, 19:43
steve_ancell
Proprietary Programming Language Definition.

A programming language that has been developed privately by a manufacturer for its own brand of robots.

Amazing how Google can enlighten the mind. (Linkage)

|edit| Although there's probably more to it than the bit of info I found. |edit|
Wed, 12 Dec 2012, 04:05
Afr0
"Bigger" languages then. That doesn't carry the right connotation either.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!