Images at original size

Johny

Registered User.
Local time
Today, 18:11
Joined
Jun 1, 2004
Messages
80
hey,

I am working on a program where users can order specific items. They can select the item they want from a listbox and a little example is displayed. I want to give the users the ability to view a bigger example (the image in original size) by clicking the image. My problem is that all of the images have different sizes, some are even twice as big then the others.

I store the path to the image file in a text field. And I change the propertie "Picture" of the imageframe at runtime.
I have a seperate form "ImageExampleBig" that only contains the imageframe.

How can I show each picture at his original dimensions and automatically resizing the form (because I got very large and very small images) ?

thanx in advance,

Johny
 
Hi Johny

You may be able to get away with having access automaticly zooming the picture. Please test this before commenting

1) right click on the picture object and select "properties"

2) on the "format" tab, go down to "Picture size mode" and select "zoom"

3) Test

This does not change the actual file itself. it will only change the way it is viewed.

Does this work?
Good luck
 
For some images it looks good but small images look messy ( I can count the pixels if I want.. hmmz :( )
I tried every setting and none showed what I really wanted :(
I just wanna show the images at their original dimensions.

At this moment, my form "ImageExampleBig" has the dimensions of the largest image. SizeMode property of my imageframe is set to acOLESizeClip. When I got small images, I have a large form and with a tiny image in it :mad:. Is there a way to automatically resize the form when I got a smaller image? Then I should need the dimensions of that image to do that, no?
 
Yes there is, but you would need to have some Visual basic code.

A better way to do this is to make all the pictures of equal size if you have something like photoshop, because then you can crop, resize and put in only the bits of picture that you want.

failing that take another picture and make that the same size with photoshop

Does this help?
 
try this:

on the "format" tab, go down to "Picture size mode" and select "clip"
 
smercer said:
Yes there is, but you would need to have some Visual basic code.

A better way to do this is to make all the pictures of equal size if you have something like photoshop, because then you can crop, resize and put in only the bits of picture that you want.

failing that take another picture and make that the same size with photoshop

Does this help?

I can't equal the size of all the images because some of them are scans of documents and the words on it can't be read at a smaller size, already tried it

smercer said:
try this:

on the "format" tab, go down to "Picture size mode" and select "clip"

At this moment, my form "ImageExampleBig" has the dimensions of the largest image. SizeMode property of my imageframe is set to acOLESizeClip. When I got small images, I have a large form and with a tiny image in it :mad:. Is there a way to automatically resize the form when I got a smaller image? Then I should need the dimensions of that image to do that, no?

:(
 
Last edited:
Johny said:
I can't equal the size of all the images because some of them are scans of documents and the words on it can't be read at a smaller size, already tried it

don't worry about the words, you can take out the words, resize and then reinsert the words using photoshop (if you want the words in the picture). if the words go over an important part of the image you can use the clone stamp to "clone" parts of untouched of the image over the words so it looks like it was not there.

post a image or two and I will give you a demo.

anyway if it is all words you should not need to use pictures. just use a text recognition that came with your scanner, or type it out and put it in a memo type field, because an image is pretty big and will make your database big. (you will run out of harddrive space)
 
smercer said:
don't worry about the words, you can take out the words, resize and then reinsert the words using photoshop (if you want the words in the picture). if the words go over an important part of the image you can use the clone stamp to "clone" parts of untouched of the image over the words so it looks like it was not there.

post a image or two and I will give you a demo.

anyway if it is all words you should not need to use pictures. just use a text recognition that came with your scanner, or type it out and put it in a memo type field, because an image is pretty big and will make your database big. (you will run out of harddrive space)

At first, thanx for the fast reply.
Well,the images are scans of documents people can order with the program I am making. It has to be an image because people want to see an example to know which document they are ordering . So the only option was resizing which I tried but can't be read at smaller size like I said. (I am working in a hospital and it is vital that the users can read what is on the document).
I just received a list of all the documents that need a big example, about 250 document, so editing the images is out of the question for meh because I got already to much work (I already started scanning 90 documents and it took me half a day, just for scanning the documents :()
 
Sounds like your scaning book covers. Would a camera be faster and better?
 
I'm sure S.Lebans has an example on his site of zooming by clicking the image, if you can't find it I think I've still got a copy somewhere
 
thanx for da replies but I solved the problem myself :):

Code:
    Dim stImageName As String
    stImageName = Me.OpenArgs
    
    'Initialize ImageFrame
    Me.ImageFrame.Picture = PublicFunction.getImagePath() & stImageName
    
    Me.ImageFrame.Height = Me.ImageFrame.ImageHeight
    Me.ImageFrame.Width = Me.ImageFrame.ImageWidth
    
    Me.Form.InsideHeight = Me.ImageFrame.ImageHeight * 1.2
    Me.Form.InsideWidth = Me.ImageFrame.ImageWidth * 1.2

It was as simple as this, I just overlooked these properties I think...
Strange nobody adviced me this so easy solution...
 
smercer said:
don't worry about the words, you can take out the words, resize and then reinsert the words using photoshop (if you want the words in the picture). if the words go over an important part of the image you can use the clone stamp to "clone" parts of untouched of the image over the words so it looks like it was not there.

post a image or two and I will give you a demo.

anyway if it is all words you should not need to use pictures. just use a text recognition that came with your scanner, or type it out and put it in a memo type field, because an image is pretty big and will make your database big. (you will run out of harddrive space)
Have you ever tried using an OCR package?
 

Users who are viewing this thread

Back
Top Bottom