Jump to content

Texture raw buffer data


_Zac_
 Share

Recommended Posts

Hello, I have a basic question. Is there a way of getting the raw data from the Textures. For example:

new PIXI.Text(this.message, this.textSettings).texure;

How do I get the individual pixel data for that texture? I looked through the documentation but I did not find how to get the pixel data. Thanks in advance!

Link to comment
Share on other sites

Are you familiar with canvas2d API ?

Here are demos that use custom https://github.com/pixijs/pixi.js/wiki/v5-Hacks#pixisprite

For Text, source of texture is canvas. You have to call "updateText" before data from canvas becomes available.

If that info is not enough for you, well, you have to wait for someone to make you demo exactly for your question.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...