It is currently Tue May 23, 2017 9:52 am



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Image Quality of Saved Bitmaps
Unread postPosted: Mon May 08, 2017 1:31 pm 
Offline

Joined: Sat Jul 04, 2015 7:28 am
Posts: 40
I need to save something EXACTLY as it is in the bitmap. I assumed that "{, <quality_nexp>}" refers to the quality of the image being saved.

The instructions, however, do not indicate the range to use for this parameter. What value would tell it to save with the highest quality possible?



Gr.bitmap.save <bitmap_ptr_nvar>, <filename_sexp>{, <quality_nexp>}
Saves the specified bitmap to a file. The default path is "<pref base drive>/rfo-basic/data/".

The file will be saved as a JPEG file if the filename ends in ".jpg".

The file will be saved as a PNG file if the filename ends in anything else (including ".png").


Report this post
Top
 Profile  
 
 Post subject: Re: Image Quality of Saved Bitmaps
Unread postPosted: Mon May 08, 2017 2:29 pm 
Offline

Joined: Tue Dec 04, 2012 10:50 am
Posts: 656
Location: UK
lladutke wrote:
I need to save something EXACTLY as it is in the bitmap. I assumed that "{, <quality_nexp>}" refers to the quality of the image being saved.

The instructions, however, do not indicate the range to use for this parameter. What value would tell it to save with the highest quality possible?



Gr.bitmap.save <bitmap_ptr_nvar>, <filename_sexp>{, <quality_nexp>}
Saves the specified bitmap to a file. The default path is "<pref base drive>/rfo-basic/data/".

The file will be saved as a JPEG file if the filename ends in ".jpg".

The file will be saved as a PNG file if the filename ends in anything else (including ".png").

"PNG" format is usually described as "lossless", so that must be your choice.

Mike.


Report this post
Top
 Profile  
 
 Post subject: Re: Image Quality of Saved Bitmaps
Unread postPosted: Mon May 08, 2017 3:49 pm 
Offline
User avatar

Joined: Sat Mar 26, 2016 9:23 am
Posts: 92
JPG is an "interpreted" image format.
NEVER gonna be exactly anything.


Report this post
Top
 Profile  
 
 Post subject: Re: Image Quality of Saved Bitmaps
Unread postPosted: Mon May 08, 2017 4:05 pm 
Offline

Joined: Tue Dec 04, 2012 10:50 am
Posts: 656
Location: UK
cavelamb wrote:
JPG is an "interpreted" image format.
NEVER gonna be exactly anything.

I think that word was meant to be "interpolated" (in case anyone was going to look it up).

Mike.


Report this post
Top
 Profile  
 
 Post subject: Re: Image Quality of Saved Bitmaps
Unread postPosted: Tue May 09, 2017 1:13 am 
Offline
User avatar

Joined: Wed Jul 10, 2013 8:11 am
Posts: 325
Hi Hadutke,
Quote:
Gr.bitmap.save <bitmap_ptr_nvar>, <filename_sexp>{, <quality_nexp>}


<quality_nexp>
The possible range is from 0 to 100.
Default is 50.

Gregor


Report this post
Top
 Profile  
 
 Post subject: Re: Image Quality of Saved Bitmaps
Unread postPosted: Tue May 09, 2017 1:13 am 
Offline
User avatar

Joined: Wed Jul 10, 2013 8:11 am
Posts: 325
Hi Hadutke,
Quote:
Gr.bitmap.save <bitmap_ptr_nvar>, <filename_sexp>{, <quality_nexp>}


<quality_nexp>
The possible range is from 0 to 100.
Default is 50.

Gregor


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests


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
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred