CakeChen's Forum Posts

  • 2 posts
  • Not Yet.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Whether is it possible to provide a scripting interface (e.g. in IRuntime) for snapshotting current canvas?

    • Similar to System action "Snapshot canvas". But got an ImageData (instead of a data URI). And it is in scripting interface.
    • Similar to DrawingCanvas plugin's function "async getImagePixelData()". But just from current whole (Offscreen)Canvas (instead of a DrawingCanvas).

    This requirement seems possible to be done by DrawingCanvas's "Paste object" and then "Save snapshot". However:

    • If there are many object types are used, DrawingCanvas's "Paste object" needs be called many times. (And, what about their z-order?)
    • This is almost drawing everything twice which may reduce some performance.

    Or, is there other method which I don't know? (e.g. The whole (Offscreen)Canvas could be accessed in scripting interface.)

  • 2 posts