Skip to content

Enhancement: add ensureAlpha method #1153

Closed

Description

@lovell

When there is not already an alpha channel, use of the proposed ensureAlpha() will add a fully-opaque (i.e. no transparency) alpha channel.

When there is already an alpha channel, use of the proposed ensureAlpha() will be a "no-op".

This should help when RGBA raw pixel data is required regardless of input channel count.

Activity

  1. added this to the v0.21.2 milestone on Jan 5, 2019
  2. lovell commented on Jan 13, 2019

    @lovell
    OwnerAuthor

    v0.21.2 now available with this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions