@@ -164,6 +164,11 @@ class Image : public ::Image {
164164 */
165165 static ::Image Cellular (int width, int height, int tileSize) { return ::GenImageCellular (width, height, tileSize); }
166166
167+ /* *
168+ * Get clipboard image content.
169+ */
170+ static ::Image GetClipboard () { return ::GetClipboardImage (); }
171+
167172 ~Image () { Unload (); }
168173
169174 Image& operator =(const ::Image& image) {
@@ -605,6 +610,13 @@ class Image : public ::Image {
605610 ::ImageDrawLineV (this , start, end, color);
606611 }
607612
613+ /* *
614+ * Description: Draw a line defining thickness within an image
615+ */
616+ void DrawLine (::Vector2 start, ::Vector2 end, int thick, ::Color color = {255 , 255 , 255 , 255 }) {
617+ ImageDrawLineEx (this , start, end, thick, color);
618+ }
619+
608620 void DrawCircle (int centerX, int centerY, int radius, ::Color color = {255 , 255 , 255 , 255 }) {
609621 ::ImageDrawCircle (this , centerX, centerY, radius, color);
610622 }
@@ -629,6 +641,8 @@ class Image : public ::Image {
629641 ::ImageDrawRectangleLines (this , rec, thick, color);
630642 }
631643
644+ // TODO: Add ImageDrawTriangle()
645+
632646 void Draw (const ::Image& src, ::Rectangle srcRec, ::Rectangle dstRec, ::Color tint = {255 , 255 , 255 , 255 }) {
633647 ::ImageDraw (this , src, srcRec, dstRec, tint);
634648 }
@@ -729,6 +743,18 @@ class Image : public ::Image {
729743 * @return True or false depending on whether the Image has been loaded.
730744 */
731745 bool IsValid () const { return ::IsImageValid (*this ); }
746+
747+ /* *
748+ * Create an image from a selected channel of another image (GRAYSCALE)
749+ */
750+ ::Image Channel (int selectedChannel) { return ::ImageFromChannel (*this , selectedChannel); }
751+
752+ /* *
753+ * Apply custom square convolution kernel to image
754+ */
755+ void KernelConvolution (const float * kernel, int kernelSize) {
756+ ::ImageKernelConvolution (this , kernel, kernelSize);
757+ }
732758protected:
733759 void set (const ::Image& image) {
734760 data = image.data ;
0 commit comments