Quantcast
Viewing all articles
Browse latest Browse all 1449

Advance Scrolliodo with Jpg encoder class

I found a very nice encoder class for jpeg saving.

ScrollioDo was first a nice simple scroller but without a DIB under, so this one has a DIB and only the Viewport extracted each time we scroll.
In this post I add the jpg encoder class by John Korejwa (from www.planetsourcecode.com).

Here j is a new cJpeg class
Code:

j.Quality = 75
j.Comment = "Scrollio Example"
j.SetSamplingFrequencies 1, 1, 1, 1, 1, 1  ' the best (by default is 2,2,1,1,1,1)
Scrollio.DiB.needHDC    \\ Scrollio never hold a Hdc...always make a new to export.
j.SampleHDC Scrollio.DiB.HDC1, Scrollio.DiB.width, Scrollio.DiB.height
Scrollio.DiB.FreeHDC
j.SaveFile b$

This program is free to make it anything, including to improve.
What we can do with that program:
We can scroll with a zoom of X20 a 20 megapixel picture very fast (and from IDE). We can make a list of pictures from a folder including sub folders and we can scroll and zoom in exactly the same position for every picture (if all has the same size and orientation).
Jpg files are opened and rotate internal based on exif data.
We can paint with a green and a white pen defining size and transparency. We can rotate in any angle (using a mask and a merge function).

Program has some controls (all internal, no dll or ocx needed) for scroll bar, scrollio control. Showing a method that one scrollio controll share same DIB with other. Showing how we can place a "Denoise soft filter". Also scrollio handle Wmf and Emf with a slider for quality control. We can place a wmf inside scrollio control and save this in the form.

There are some nice effect with cursor move. We can move cursor and move anywhere in a 20Mpixel photo without using scrollbars. A >5k width times 20 is a 100k width, but largebar can work nice..
ScrollioJPGr.zip
Attached Files

Viewing all articles
Browse latest Browse all 1449

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>