MCPcopy Create free account

hub / github.com/cretz/go-scrap / functions

Functions51 in github.com/cretz/go-scrap

↓ 7 callersFunctionfailIfErr
(t interface{ Fatal(args ...interface{}) }, err error)
scrap_test.go:144
↓ 6 callersMethodFrame
Frame gets an individual frame for this captured display. If an error occurs, it is returned. If capturing the frame would be a blocking call, wouldBl
scrap.go:184
↓ 5 callersFunctionfromCgoErr
(raw *C.char)
scrap.go:290
↓ 5 callersFunctionpanicIfErr
(err error)
scrap_test.go:150
↓ 3 callersMethodBounds
ColorModel implements image.Bounds.
scrap.go:235
↓ 3 callersMethodFrameImage
FrameImage wraps the result of Frame into a FrameImage. It inherits the same ownership rules and restrictions of the Frame slice result.
scrap.go:197
↓ 3 callersMethodassertOwned
()
scrap.go:79
↓ 3 callersFunctionnewDisplay
(d *C.struct_Display)
scrap.go:71
↓ 3 callersFunctionprimaryScreenCapturer
()
scrap_test.go:136
↓ 2 callersMethodAt
At implements image.At.
scrap.go:238
↓ 2 callersMethodHeight
Height gets the height of this display. This will panic if it is called after the display has been passed to NewCapturer.
scrap.go:126
↓ 2 callersMethodWidth
Width gets the width of this display. This will panic if it is called after the display has been passed to NewCapturer.
scrap.go:119
↓ 2 callersMethodsetOwned
(owned bool)
scrap.go:85
↓ 1 callersMethodDetach
Detach simply replaces Pix with a copy so the ownership rules and regulations of the underlying array no longer apply and this can be freely used with
scrap.go:264
↓ 1 callersMethodPixOffset
PixOffset gives the index of the Pix where the 4-value BGRA pixel is.
scrap.go:250
↓ 1 callersMethodRGBAAt
RGBAAt returns the RGBA color at the given point.
scrap.go:241
↓ 1 callersMethodToRGBAImage
ToRGBAImage converts this image to a image.RGBA image. This has value because in some packages such as image/draw and image/png, image.RGBA values are
scrap.go:275
↓ 1 callersFunctioncapturer
()
example/video/main.go:114
↓ 1 callersFunctiongetScreenshot
()
example/screenshot/main.go:38
↓ 1 callersFunctionrecordToVideo
(ctx context.Context, fileName string)
example/video/main.go:44
↓ 1 callersFunctionsaveScreenshotPNG
(fileName string)
example/screenshot/main.go:25
FunctionBenchmarkFrameToRGBAImageApproaches
(b *testing.B)
scrap_test.go:98
FunctionBenchmarkRepeatedFrames
(b *testing.B)
scrap_test.go:70
MethodColorModel
ColorModel implements image.ColorModel.
scrap.go:232
FunctionDisplays
Displays returns the set of known displays.
scrap.go:52
FunctionExample_screenshot
()
scrap_test.go:26
FunctionGetDisplay
GetDisplay returns a display on the specified index
scrap.go:108
MethodHeight
Height returns the height of this captured display.
scrap.go:164
FunctionMakeDPIAware
MakeDPIAware enables the DPI aware setting for this process. This is currently only applicable for Windows. When DPI aware, the Width and Height of th
scrap.go:44
FunctionNewCapturer
NewCapturer creates a capturer for the given display. Methods on the display can no longer be called after passed to this function.
scrap.go:142
MethodOpaque
Opaque always returns false as is present a performance optimization for algorithms such as PNG saving.
scrap.go:256
FunctionPrimaryDisplay
PrimaryDisplay returns the primary display of the system or an error.
scrap.go:99
FunctionTestFrameToRGBAImage
(t *testing.T)
scrap_test.go:47
FunctionTestMain
(m *testing.M)
scrap_test.go:14
MethodWidth
Width returns the width of this captured display.
scrap.go:159
Functioncapturer_frame
(c: *mut scrap::Capturer)
scrap-sys/src/lib.rs:140
Functioncapturer_free
(c: *mut scrap::Capturer)
scrap-sys/src/lib.rs:117
Functioncapturer_height
(c: *mut scrap::Capturer)
scrap-sys/src/lib.rs:127
Functioncapturer_new
(d: *mut scrap::Display)
scrap-sys/src/lib.rs:102
Functioncapturer_width
(c: *mut scrap::Capturer)
scrap-sys/src/lib.rs:122
Functiondisplay_free
(d: *mut scrap::Display)
scrap-sys/src/lib.rs:81
Functiondisplay_height
(d: *mut scrap::Display)
scrap-sys/src/lib.rs:91
Functiondisplay_list
()
scrap-sys/src/lib.rs:18
Functiondisplay_primary
()
scrap-sys/src/lib.rs:48
Functiondisplay_width
(d: *mut scrap::Display)
scrap-sys/src/lib.rs:86
Functionerror_free
(err: *mut libc::c_char)
scrap-sys/src/lib.rs:6
FunctionfinalizeCapturer
(c *Capturer)
scrap.go:138
FunctionfinalizeDisplay
(d *Display)
scrap.go:77
Functionget_display
(index: libc::c_int)
scrap-sys/src/lib.rs:62
Functionmain
This example creates a screenshot at screenshot.png or a given filename.
example/screenshot/main.go:14
Functionmain
This example records the current screen to out.mp4 or the given filename. Note, the ffmpeg executable must be on the PATH.
example/video/main.go:19