Handbook
Glossary
<CGImage> ( byte-array -- image-rep )
Vocabulary
images
.
loader
.
cocoa
Inputs
byte-array
an
object
Outputs
image-rep
an
object
Definition
USING:
alien.c-types
cocoa.classes
cocoa.messages
cocoa.runtime
core-foundation.data
kernel
;
IN:
images.loader.cocoa
:
<CGImage>
( byte-array -- image-rep )
[
NSBitmapImageRep
]
dip
<CFData>
{
id
{
id
SEL
}
}
"autorelease"
send
{
id
{
id
SEL
id
}
}
"imageRepWithData:"
send
{
void*
{
id
SEL
}
}
"CGImage"
send
;