Extracting App view image

About Monkey 2 Forums Monkey 2 Programming Help Extracting App view image

This topic contains 2 replies, has 3 voices, and was last updated by  Mark Sibly 2 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7535

    abakobo
    Participant

    Is there a way to extract the Data from an image?
    It looks like it is stored in a Texture but there are some private stuffs…

    With pixmaps I can use pixmap.Data but I’d like to save my screen using the canvas passed to OnRender (something like canvas.RenderTarget.Data)

    #7536

    impixi
    Participant

    canvas.CopyPixmap(New Recti(0, 0, canvas.Viewport.Width, canvas.Viewport.Height))

    ?

    example: (press F10 to save capture to your desktop)

    [/crayon]
    #7560

    Mark Sibly
    Keymaster

    Yeah, canvas.CopyPixmap is about it right now. GLES2.0 lets you read backbuffer/write textures but not vice versa. It shouldn’t be too hard to ‘fake’ it though – please post an issue on github to remind me!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.