Draw the markers as an image file (tinted by the marker color; its transparent parts left out), or as a disk again with ''. Returns false if the image cannot be read (the markers are then unchanged).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(MarkerArtist), | intent(inout) | :: | self | |||
| character(len=*), | intent(in) | :: | file |
the image file ('': a disk again) |
logical function set_marker_image(self, file) result(ok) class(MarkerArtist), intent(inout) :: self character(len=*), intent(in) :: file !! the image file ('': a disk again) type(c_ptr) :: image ok = .true. if (len_trim(file) == 0) then image = c_null_ptr self%shape_ = MARKER_DISK else image = vkf_image_read(trim(file), len_trim(file, kind=c_int)) ok = c_associated(image) if (.not. ok) return self%shape_ = MARKER_IMAGE end if if (c_associated(self%image)) call vkf_image_delete(self%image) self%image = image self%image_file = trim(file) call rebuild_markers(self) ! the image is part of the marker nodes end function set_marker_image