Giter Site home page Giter Site logo

Inadequate documentation about splat HOT 3 CLOSED

reactiveui avatar reactiveui commented on May 5, 2024
Inadequate documentation

from splat.

Comments (3)

Cheesebaron avatar Cheesebaron commented on May 5, 2024

ToNative() as the name indicates returns the native representation of an image.

So on Android it is a Bitmap, on iOS it is an UIImage and so on.

The sample code above simply downloads an image and saves the byte representation in imageBytes. This is loaded into a class which helps creating the Native version, which also provides a bit of help with scaling the image.

You should be able to figure out from knowing the type returned in ToNative() how it is used on the platform. If you spent like 30 seconds studying the code for each platform you would have gotten all this information. This isn't very complicated code, but it is super convenient.

from splat.

HarryMcCarney avatar HarryMcCarney commented on May 5, 2024

Thanks , it was the IBitmap interface i was missing.

from splat.

anaisbetts avatar anaisbetts commented on May 5, 2024

@HarryMcCarney I'll add explicit types to the README, hopefully will be a bit more clear!

from splat.

Related Issues (20)

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.