Function

GskComponentTransfernew_linear

unstable since: 4.20

Declaration [src]

GskComponentTransfer*
gsk_component_transfer_new_linear (
  float m,
  float b
)

Description [src]

Creates a new component transfer that applies a linear transform.

The new value is computed as

C' = C * m + b.

Available since: 4.20

Parameters

m

Type: float

No description available.

b

Type: float

No description available.

Return value

Type: GskComponentTransfer

A new GskComponentTransfer.

The caller of the function takes ownership of the data, and is responsible for freeing it.