[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd/cvd image.h
From: |
Edward Rosten |
Subject: |
[libcvd-members] libcvd/cvd image.h |
Date: |
Sat, 18 Nov 2006 08:31:24 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Edward Rosten <edrosten> 06/11/18 08:31:24
Modified files:
cvd : image.h
Log message:
Check back in pair constructor for images. I didn't mean to remove it.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/image.h?cvsroot=libcvd&r1=1.26&r2=1.27
Patches:
Index: image.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/image.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- image.h 16 Nov 2006 19:16:43 -0000 1.26
+++ image.h 18 Nov 2006 08:31:24 -0000 1.27
@@ -743,6 +743,15 @@
dup_from(&tmp);
}
+ ///Create a filled image of a given size
+ ///@param p std::pair<ImageRef, T> containing the size and fill
value.
+ ///Useful for creating containers of images with
ImageCreationIterator
+ Image(const std::pair<ImageRef, T>& p)
+ {
+ Image<T> tmp(p.first);
+ tmp.fill(p.second);
+ dup_from(&tmp);
+ }
///Resize the image (destroying the data). The image is resized
even if the new size is the same as the old one.
///@param size The new size of the image