File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -988,9 +988,16 @@ class VImage : public VObject
988
988
}
989
989
990
990
/* *
991
- * Make a new image by rendering self to a large memory area,
992
- * wrapping a VImage around it, and copying all metadata over from
993
- * self.
991
+ * This operation allocates memory, renders self into it, builds a new
992
+ * image around the memory area, and returns that.
993
+ *
994
+ * If the image is already a simple area of memory, it does nothing.
995
+ *
996
+ * Call this before using the draw operations to make sure you have a
997
+ * memory image that can be modified.
998
+ *
999
+ * VImage::copy() adds a null "copy" node to a pipeline. Use that
1000
+ * instead if you want to change metadata and not pixels.
994
1001
*/
995
1002
VImage
996
1003
copy_memory () const
Original file line number Diff line number Diff line change @@ -3309,10 +3309,17 @@ vips_image_rewind_output( VipsImage *image )
3309
3309
* vips_image_copy_memory:
3310
3310
* @image: image to copy to a memory buffer
3311
3311
*
3312
- * Make an image which is an area of memory.
3312
+ * This function allocates memory, renders @image into it, builds a new
3313
+ * image around the memory area, and returns that.
3313
3314
*
3314
- * If @image is already a memory buffer, just ref and return. If it's a file on
3315
- * disc or a partial, allocate memory and copy the image to it.
3315
+ * If the image is already a simple area of memory, it just refs @image and
3316
+ * returns it.
3317
+ *
3318
+ * Call this before using the draw operations to make sure you have a
3319
+ * memory image that can be modified.
3320
+ *
3321
+ * vips_image_copy() adds a null "copy" node to a pipeline. Use that
3322
+ * instead if you want to change metadata and not pixels.
3316
3323
*
3317
3324
* This operation is thread-safe, unlike vips_image_wio_input().
3318
3325
*
You can’t perform that action at this time.
0 commit comments