Ask Your Question
0

Slide Show project - image smaller than window

asked 2017-05-26 10:11:58 -0500

djtommye gravatar image

First off - this is my first venture into image processing, and I'm so glad that I found cv!

I'm developing something of a slide show program, and have gotten cv to display an image and that image size properly based on the secondary display.

I'm curious though, about the best method to tackle my next problem... If the image is smaller has a different aspect ratio than the screen, I'd like it to be displayed with the correct ratio, but on a black background.

I'm wondering if I'm overlooking some simple method of doing this? Or will I need to dynamically create an image with the black background and then copy the loaded image to that.

Any help or sample code would be appreciated. Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-05-26 14:07:49 -0500

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-05-26 10:11:58 -0500

Seen: 89 times

Last updated: May 26 '17