| MEDIA CYBERNETICS TECHNICAL SUPPORT | |||
| Frequently Asked Questions | Technical Service Bulletins | Mailing List Archive | Contact Us! |
|---|---|---|---|
| Technical Support Home | Product Updates | Device Drivers | Media Cybernetics Home |
Re: Macro to Creating RGB files
|
|||
Stephen, Here ya go: Dim dInfo As IPDOCINFO Dim image_width As Integer Dim image_height As Integer ret = IpDocGet(GETDOCINFO, DOCSEL_ACTIVE, dInfo) image_width = dInfo.Width image_height = dInfo.Height Then use image_height and image_width as the parameters for your new workspce command. ****************************** Jim Haley Applications Engineer I-CUBE 2411 Crofton Lane, Suite 14A Crofton, MD 21114 voice: (301) 858-0505 fax: (301) 858-0615 web site: http://www.i-cubeinc.com e-mail: haley@i-cubeinc.com ****************************** Stephen P. Schneider wrote: > > Colleagues - > > In the process of applying custom color to B&W images using ImagePro > Ver. 1.3, we've written a simple macro to create a black window of X by Y > pixels that is an RGB image into which we merge the B&W image for coloring. > However, the images we wish to merge are not of uniform size, necessitating > manually changing the image dimensions specified by the IpWsCreate command > in the macro each time we want to process an image. Is there any way to get > the macro to read the size of the image to be merged and adjust the size of > the RGB file accordingly? Being relative novices at this, we may be missing > something quite obvious. > > - Stephen P. Schneider, PhD > ----------------------------- > Stephen P. Schneider, Ph.D. > Department of Anatomy > 508 W. Fee Hall > Michigan State University > E. Lansing, MI 48824-1316 > schnei98@com.msu.edu > tel (517) 432-5546 > fax (517) 353-9764 > > --------------------------------- > To unsubscribe from this list, send an email to majordomo@mediacy.com with > 'unsubscribe imagepro-users' as the body of the message. -- --------------------------------- To unsubscribe from this list, send an email to majordomo@mediacy.com with 'unsubscribe imagepro-users' as the body of the message.
This archive was generated by hypermail 2b29 : 08/04/00 EDT