Save the last frame as an image (format from the file extension, e.g. .png). Returns false on failure.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowProxy), | intent(inout) | :: | self | |||
| character(len=*), | intent(in) | :: | file |
image file name (e.g. .png) |
logical function capture(self, file) result(ok) class(WindowProxy), intent(inout) :: self character(len=*), intent(in) :: file !! image file name (e.g. .png) ok = .false. if (.not. self%is_open()) return ok = vkf_viewer_capture(self%viewer_, file, len(file, kind=c_int)) == 0 end function capture