Code Monkey home page Code Monkey logo

Comments (2)

xupefei avatar xupefei commented on August 11, 2024

For now you have to choices:
1) Do not use Differential Frames: That means every frame of the apng is a complete image, so BlendOps is no longer needed (Because every frame have no relation to it's prior).
2) Calculate the new color by yourself: Do some calculation so you can simulates the blending procedure.
As now I am working on content pipeline and in it we can not use D3D-related functions (like RenderTarget) to blend frames, I will implement the 2nd solution in the future.

The "BlendOps" in the code is not the "BlendOps" that in DirectX. Here thay are just a Enumeration :) .
As I know, MonoGame supports the BlendState: http://stackoverflow.com/questions/10463629/monogame-blendstate-2d-spritebatch.

from apng.net.

phrohdoh avatar phrohdoh commented on August 11, 2024

Thank you so much, that is what I was looking for.
Incase anyone else comes across this here's how to solve it.

I had assumed BlendOps was a DirectX function when it was actually an Enum from the LibAPNG project.
Make sure to reference the LibAPNG project if you need to make use of it, that's what I forgot to do.

from apng.net.

Related Issues (4)

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.