Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Jan 29, 2020 9:04 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: TIFFPictureMBS and Photometric
PostPosted: Thu Mar 24, 2011 10:17 am 
Offline

Joined: Sun Jan 23, 2011 11:59 am
Posts: 465
Sorry if this is obvious but I am still battling with the TIFF format.

I know that some tiff images particularly the 1bit images may be set as Black on White or White on Black. I understand that I would need to set the Photometric properly to cater for this.

However, when I load a tiff image, how do I find out what photometric setting it is using and ensure that the image will come out with White Background and Back Text.

Thanks.

_________________
RealStudio 2012R1 ♡ Macbook Pro Mac OS X 10.8.1 Moutain Lion
http://www.batchimage.com


Top
 Profile  
Reply with quote  
 Post subject: Re: TIFFPictureMBS and Photometric
PostPosted: Thu Mar 24, 2011 10:29 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Well, you should check the Photometric value for the tiff picture.

The picture you read with pict property or ReadRGB has those photometric applied, so the picture should read correctly.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: TIFFPictureMBS and Photometric
PostPosted: Thu Mar 24, 2011 10:37 am 
Offline

Joined: Sun Jan 23, 2011 11:59 am
Posts: 465
Thanks. Yes, you are right, it should do it automatically for me.

For some stupid reason, I went to set the Photometric setting to 0 if the images is 1 bits. It was definitely the wrong move.

When I just remove the code and let the readbw do its own magic, it works great.

Thank you once again.

_________________
RealStudio 2012R1 ♡ Macbook Pro Mac OS X 10.8.1 Moutain Lion
http://www.batchimage.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group