aboutsummaryrefslogtreecommitdiffstats
path: root/rtgrpblib_reset_raster.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-02-07 22:38:36 +0100
committerMattias Andrée <maandree@kth.se>2023-02-07 22:38:36 +0100
commit6bea61a199dd841b23053cf1b8ccd3dd753c0846 (patch)
tree62e526e51eac4b210305177dcc5222e800d42d35 /rtgrpblib_reset_raster.3
parentREADME: add usage information (diff)
downloadlibrifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-6bea61a199dd841b23053cf1b8ccd3dd753c0846.tar.gz
librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-6bea61a199dd841b23053cf1b8ccd3dd753c0846.tar.bz2
librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-6bea61a199dd841b23053cf1b8ccd3dd753c0846.tar.xz
Add man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'rtgrpblib_reset_raster.3')
-rw-r--r--rtgrpblib_reset_raster.361
1 files changed, 61 insertions, 0 deletions
diff --git a/rtgrpblib_reset_raster.3 b/rtgrpblib_reset_raster.3
new file mode 100644
index 0000000..6681757
--- /dev/null
+++ b/rtgrpblib_reset_raster.3
@@ -0,0 +1,61 @@
+.TH RTGRPBLIB_RESET_RASTER 3 LIBRIFUNKTIONSTECKENSNITTSGLYFRASTERISERINGSPROGRAMBIBLIOTEKET
+.SH NAME
+rtgrpblib_reset_raster - Reuse a drawing buffer
+
+.SH DESCRIPTION
+.LP
+.nf
+#include <librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h>
+
+int rtgrpblib_reset_raster(RTGRPBLIB_RASTER *\fIraster\fP, size_t \fIwidth\fP, size_t \fIheight\fP);
+.fi
+.PP
+Link with
+.IR "-lrifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket" .
+
+.SH DESCRIPTION
+The
+.BR rtgrpblib_reset_raster ()
+function changes a buffer's
+.RI ( raster 's)
+width and height, to
+.I width
+and
+.IR height ,
+respectively, and clears the buffer as if recently
+created. However, the function cannot reallocate
+the buffer, which means that the new area cannot
+be greater than the original area, however it can
+be greater than the current area.
+.PP
+Other configurations in
+.I raster
+are kept as is.
+
+.SH RETURN VALUES
+The
+.BR rtgrpblib_reset_raster ()
+function returns 0 upon successful completion,
+and -1 on failure.
+
+.SH ERRORS
+The
+.BR rtgrpblib_reset_raster ()
+function will fail if:
+.TP
+.B EINVAL
+.I width
+or
+.I height
+is zero.
+.TP
+.B EINVAL
+The product
+.I width
+and
+.I height
+exceeds the original size of the buffer.
+
+.SH SEE ALSO
+.BR librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket (7),
+.BR rtgrpblib_create_raster (3)