Giter Club home page Giter Club logo

imagefromxamarinui's People

Contributors

dimonovdd avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

imagefromxamarinui's Issues

CaptureImageAsync used on an OpenGLView produces blank results

I've got a Xamarin.Forms / Android app that displays graphics in an OpenGLView. I'm trying to use the NuGet "ImageFromXamarinUI" to capture an instantaneous screenshot of the graphics at a point in time, and save it to a file.

My "capture" code currently looks like:

                Stream imageStream = await myPage.myOpenGLView.CaptureImageAsync();

                string myCaptureFilename = $"MLM - {ParamsEqSetName} - {System.DateTime.Now.ToString("yyyy_MM_d_HH_mm")}";

                using (Stream stream = File.Open($"/storage/emulated/0/Pictures/{myCaptureFilename}", FileMode.Create))
                {
                    imageStream.CopyTo(stream);
                    stream.Close();
                    stream.Dispose();
                }

The file is being created successfully. But, when I try to open it as an image with the Photos app, I get a blank, black screen.

I expect to see the graphics that were being displayed at the moment that I executed the capture code. Instead, I get a blank, black screen.

Any help would be appreciated.

Doesn't work with .Net Maui

I tried using this with .Net Maui, but was unable to build my app after adding this package. Any plans to update for .Net Maui? Or any quick fix I can use? Thanks.

Does not work when applied to a scrollview.

If you try to take a "ScreenShot" of a ScrollView, this cuts off with only the visible area of the ScrollView.

I would expect similar things to happen to any control which happens to go offscreen, but I went back to my implementation before I tested anymore.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.