toggle menu
skiko
0.0.0-SNAPSHOT
common
switch theme
search in API
skiko
/
org.jetbrains.skia
/
Pixmap
Pixmap
class
Pixmap
:
Managed
Members
Constructors
Pixmap
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
addr
Link copied to clipboard
val
addr
:
NativePointer
buffer
Link copied to clipboard
val
buffer
:
Data
info
Link copied to clipboard
val
info
:
ImageInfo
is
Closed
Link copied to clipboard
expect
open
val
isClosed
:
Boolean
Check if underlying resource is closed.
row
Bytes
Link copied to clipboard
val
rowBytes
:
Int
row
Bytes
As
Pixels
Link copied to clipboard
val
rowBytesAsPixels
:
Int
Functions
close
Link copied to clipboard
expect
open
fun
close
(
)
Free underlying native resource, peer is useless afterwards.
compute
Byte
Size
Link copied to clipboard
fun
computeByteSize
(
)
:
Int
compute
Is
Opaque
Link copied to clipboard
fun
computeIsOpaque
(
)
:
Boolean
erase
Link copied to clipboard
fun
erase
(
color
:
Int
)
:
Boolean
fun
erase
(
color
:
Int
,
subset
:
IRect
)
:
Boolean
extract
Subset
Link copied to clipboard
fun
extractSubset
(
subset
:
Pixmap
,
area
:
IRect
)
:
Boolean
fun
extractSubset
(
subsetPtr
:
NativePointer
,
area
:
IRect
)
:
Boolean
get
Addr
Link copied to clipboard
fun
getAddr
(
x
:
Int
,
y
:
Int
)
:
NativePointer
get
Alpha
F
Link copied to clipboard
fun
getAlphaF
(
x
:
Int
,
y
:
Int
)
:
Float
get
Color
Link copied to clipboard
fun
getColor
(
x
:
Int
,
y
:
Int
)
:
Int
read
Pixels
Link copied to clipboard
fun
readPixels
(
pixmap
:
Pixmap
?
)
:
Boolean
fun
readPixels
(
info
:
ImageInfo
,
addr
:
NativePointer
,
rowBytes
:
Int
)
:
Boolean
fun
readPixels
(
pixmap
:
Pixmap
,
srcX
:
Int
,
srcY
:
Int
)
:
Boolean
fun
readPixels
(
info
:
ImageInfo
,
addr
:
NativePointer
,
rowBytes
:
Int
,
srcX
:
Int
,
srcY
:
Int
)
:
Boolean
reset
Link copied to clipboard
fun
reset
(
)
fun
reset
(
info
:
ImageInfo
,
buffer
:
Data
,
rowBytes
:
Int
)
fun
reset
(
info
:
ImageInfo
,
addr
:
NativePointer
,
rowBytes
:
Int
,
underlyingMemoryOwner
:
Managed
?
=
null
)
scale
Pixels
Link copied to clipboard
fun
scalePixels
(
dstPixmap
:
Pixmap
?
,
samplingMode
:
SamplingMode
)
:
Boolean
set
Color
Space
Link copied to clipboard
fun
setColorSpace
(
colorSpace
:
ColorSpace
?
)
to
String
Link copied to clipboard
expect
open
override
fun
toString
(
)
:
String