Difference between revisions of "(Image):isFormatLinear"

(Created page)
 
m
 
Line 1: Line 1:
 
{{newin|[[11.0]]|110|type=function}}
 
{{newin|[[11.0]]|110|type=function}}
Gets whether the Image was [[love.graphics.newImage|created]] with a the linear (non-gamma corrected) flag set to true.
+
Gets whether the Image was [[love.graphics.newImage|created]] with the linear (non-gamma corrected) flag set to true.
  
 
This method always returns false when [[love.graphics.isGammaCorrect|gamma-correct rendering]] is not enabled.
 
This method always returns false when [[love.graphics.isGammaCorrect|gamma-correct rendering]] is not enabled.

Latest revision as of 03:16, 27 January 2021

Available since LÖVE 11.0
This function is not supported in earlier versions.

Gets whether the Image was created with the linear (non-gamma corrected) flag set to true.

This method always returns false when gamma-correct rendering is not enabled.

Function

Synopsis

linear = Image:isFormatLinear( )

Arguments

None.

Returns

boolean linear
Whether the Image's internal pixel format is linear (not gamma corrected), when gamma-correct rendering is enabled.

See Also

Other Languages