-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functs get timestamp and save as png with opts #22
base: master
Are you sure you want to change the base?
Conversation
@@ -387,7 +387,7 @@ cdef class Context: | |||
"min_num_image_notifications": config.minNumImageNotifications, | |||
"grab_timeout": config.grabTimeout, | |||
"grab_mode": config.grabMode, | |||
"high_performance_retrieve_buffer": config.highPerformanceRetrieveBuffer, | |||
#"high_performance_retrieve_buffer": config.highPerformanceRetrieveBuffer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated.changes?
ts=fc2GetImageTimeStamp( &self.img) | ||
return ts | ||
|
||
def save_as_png(self,filename): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be save_image()
and the format choice should be exposed as an argument in a suitable way.
with nogil: | ||
fc2SaveImage( &self.img, filename_c, format ) | ||
|
||
def save_as_pngwithopt(self,filename,compressionlevel=1,interlaced=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
@hscolan ping |
No description provided.