Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer:rhinoscriptimageextension [2015/10/19]
sandy
developer:rhinoscriptimageextension [2016/03/17] (current)
sandy
Line 1: Line 1:
-======GDI Bitmap ​extension ​for RhinoScript======+======GDI Bitmap ​Extension ​for RhinoScript======
 > **Developer:​** [[developer:​rhinoscript|RhinoScript]] > **Developer:​** [[developer:​rhinoscript|RhinoScript]]
 > **Summary:​** //A plug-in which exposes the Microsoft GDI+ API to RhinoScript.//​ > **Summary:​** //A plug-in which exposes the Microsoft GDI+ API to RhinoScript.//​
  
  
-The Graphics Device Interface (or GDI) in Microsoft Windows is a base library for all platform graphics calls. Rhino supports a newer version of these libraries called GDI+ which enable ​the developer to use advanced drawing techniques such as anti-aliasing,​ transparencies,​ gradients and cleartype fonts. The essentials of GDI+ are now available for RhinoScripters through the use of this plug-in. This project is aimed at those scripters who need to either analyze or create graphic data through automated processes. It is **not** a graphic editor and it is **not** for you if you're unfamiliar with [[developer:​rhinoscript|RhinoScript]].+The Graphics Device Interface (or GDI) in Microsoft Windows is a base library for all platform graphics calls. Rhino supports a newer version of these libraries called GDI+ which enables ​the developer to use advanced drawing techniques such as anti-aliasing,​ transparencies,​ gradientsand cleartype fonts. The essentials of GDI+ are now available for RhinoScripters through the use of this plug-in. This project is aimed at those scripters who need to either analyze or create graphic data through automated processes. It is **not** a graphic editor and it is **not** for you if you're unfamiliar with [[developer:​rhinoscript|RhinoScript]].
  
-For further questions and requests, please: +For further questions and requests, please: [[David@McNeel.com|Contact]] the [[people:​davidrutten|author.]]
- +
-[[David@McNeel.com|Contact]] the [[people:​davidrutten|author.]]+
  
 =====Downloads===== =====Downloads=====
  
-[[http://​wiki.mcneel.com/​_media/​legacy/​en/​RhPicture.zip|Download the plug-in, the Monkey autocompletion file, and the example scripts]] Install instructions are located inside the Archive.+[[http://​wiki.mcneel.com/​_media/​legacy/​en/​RhPicture.zip|Download the plug-in, the Monkey autocompletion file, and the example scripts.]] Install instructions are located inside the Archive.
  
 =====Nested Object definitions===== =====Nested Object definitions=====
Line 65: Line 63:
 | Memory Bitmap | *.rle | A geeky format you're unlikely to encounter. | | Memory Bitmap | *.rle | A geeky format you're unlikely to encounter. |
 | JPEG          | **.jpg;​**.jpeg | Image format designed for photography. Does not contain Alpha channel information but has good lossy compression. | | JPEG          | **.jpg;​**.jpeg | Image format designed for photography. Does not contain Alpha channel information but has good lossy compression. |
-| Gif           | *.gif | Image format designed for web viewing. Supports only paletted ​colours ​and single bit Alpha channels. RhPicture does not support animated gifs. |+| Gif           | *.gif | Image format designed for web viewing. Supports only paletted ​colors ​and single bit Alpha channels. RhPicture does not support animated gifs. |
 | PNG           | *.png | Image format designed to get around the limitations of GIF images. Supports full Alpha channels and lossless compression. The format of choice for todays discriminating programmer. | | PNG           | *.png | Image format designed to get around the limitations of GIF images. Supports full Alpha channels and lossless compression. The format of choice for todays discriminating programmer. |
-| EXIF          | *.exif | A flavour of JPEG used in digital cameras that stores camera information such as shutter speed and exposure. |+| EXIF          | *.exif | A JPEG flavor ​used in digital cameras that stores camera information such as shutter speed and exposure. |
 | TIFF          | **.tif'​**.tiff | An extremely versatile format with lots of options. RhPlugin does not support multi-layered tiffs. | | TIFF          | **.tif'​**.tiff | An extremely versatile format with lots of options. RhPlugin does not support multi-layered tiffs. |
 | Icons         | *.ico | Windows icon format. Poorly supported in RhPicture. | | Icons         | *.ico | Windows icon format. Poorly supported in RhPicture. |
Line 73: Line 71:
 \\ \\
  
-All image data inside RhPicture instances is stored as 32bppARGB (32 bits-per-pixel Alpha Red Green Blue) meaning that JPEG, GIF and some TIFF and PNG compression options are lost when they are loaded. ​You can at all times display or save the image contained in an RhPicture instance using:+All image data inside RhPicture instances is stored as 32bppARGB (32 bits-per-pixel Alpha Red Green Blue) meaning that JPEG, GIFand some TIFF and PNG compression options are lost when they are loaded. ​At all times you can display or save the image contained in an RhPicture instance using:
  
 <code vb> <code vb>
Line 87: Line 85:
 |    MMB-Scroll is used for zooming (zooming is restricted to 10%~5000% domain). ​   | |    MMB-Scroll is used for zooming (zooming is restricted to 10%~5000% domain). ​   |
  
-\\ 
 \\ \\
  
 ---- ----
-\\ 
 \\ \\
  
Line 122: Line 118:
 |Luminance(x,​ y) | Returns the colour luminance (0.0~1.0) of the pixel at (x,y) or NULL on error. | |Luminance(x,​ y) | Returns the colour luminance (0.0~1.0) of the pixel at (x,y) or NULL on error. |
  
-\\ 
 \\ \\
  
 ---- ----
-\\ 
 \\ \\
  
 **//Drawing methods//** **//Drawing methods//**
  
-There are many methods available for drawing geometry. See this wiki page for more details:+There are many methods available for drawing geometry. See this wiki page for more details: ​[[developer:​rhpicture:​drawgeometry|RhPicture drawing routines.]]
  
-[[developer:​rhpicture:​drawgeometry|RhPicture drawing routines]] 
- 
-\\ 
 \\ \\
  
 ---- ----
-\\ 
 \\ \\
  
 **//Filter methods//** **//Filter methods//**
  
-There are many methods available for applying effects and filters to RhPicture images. See this wiki page for more details: +There are many methods available for applying effects and filters to RhPicture images. See this wiki page for more details: [[developer:​rhpicture:​filtermethods|RhPicture filter routines.]]
- +
-[[developer:​rhpicture:​filtermethods|RhPicture filter routines]]+
  
  
  
developer/rhinoscriptimageextension.txt · Last modified: 2016/03/17 by sandy