473,803 Members | 4,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to creat thumbnails of jpg images in MS-Access database

Hi there,

This is my first time here,.....I am a Perl developer by trade but
currently working on Access database.

Anyway,...I use this artical from Microsoft knowldge base number
(285820) to creat a database that contains few .jpg images.

My question is; how can I create a thumbnail imges for those jpg images
and, if how can I get the the original jpg image to be displayed once I
click on the thumbnail?

Thanks for yoyr help.
Tim

Nov 13 '05 #1
1 4036
You can use an image control(s) then use the width and height
propertie(s) of your control(s). Make sure that the size mode property
of the image contorl (in the property sheet of the image control) is set
to zoom for this to work (because you are zooming in and out).

Private Sub Image11_Click()
Static i As Integer
If i Then
Image11.Width = 7920
Image11.Height = 6360
Else
Image11.Width = 2220
Image11.Height = 2040
End If
i = Not i
End Sub

Note: in the property sheet of the image control the sizes are in
inches. In programming you have to use twips - 1440 twips per inch.
The above is in twips. You could have a bunch of image controls placed
together like a table.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3672
by: Ken | last post by:
I am in the process of designing my first web-site, and am having a problem with my picture gallery. My thumbnails are all different sizes, I would like them to be one size. The manual does not address this situation. Where did I go wrong?
11
1989
by: Ian Davies | last post by:
Hello Im having problems displaying my images as thumbnails in a table. My code for producing the new width and height from the original image is as follows ************************************************** if ($ImagePath) { //$Image = WEB_ROOT . 'images/PupilTester/' . $ImagePath; $Image = 'images/PupilTester/' . $ImagePath; } else { $Image ='images/PupilTester/nopicture.bmp'; }
6
2618
by: c d saunter | last post by:
Greetings All, In Widows Explorer there is a thumbnail view, where you see images as thumbnails. Applications such as MS Office and OpenOffice, when installed, cause their respective filetypes to be previewed as thumbnails as well. Thumbnails are stored in the Thumbs.db hidden file. There my knowledge ends. I'm asuming that aplications install registry keys somewhere that register an invocation that returns a thumbnail for a given...
3
11403
by: Vagabond Software | last post by:
I'm trying to display thumbnail images in a Listview that look more like the Windows thumbnail view. Everything is working pretty good, but my thumbnails are decidedly not like the Windows thumbnails. View the following snapshot to compare the Windows thumbnails (top) to my ListView thumbnails (bottom): http://home.san.rr.com/vagabondia/images/tmp/sample.gif It looks like the Windows thumbnails retain their proportion by, perhaps,
2
3938
by: Keith Smith | last post by:
How can I have a box (maybe a picture box or a panel or something?) that will display all of the contents of a particular folder and show the picture files as thumbnails along with the name of the file right below them? I then need to be able to drag each item onto another picture box (or something similar) where the picture will be displayed. How can I accomplish this? I have c#
1
2375
by: Espen Evje | last post by:
Hi, I am trying to present the images in a folder as thumbnails in a dynamically created asp:table. I however do not want to save the thumbnails to disk, only show the images in this folder as thumbnails and then forget about them. I've seen a lot of samples using a datagrid/list and automatically bind thumbnails to these controls, but it does not meet my requirements. I've also seen a sample where the thumbnail of one image is...
8
3213
by: Fabricio Sperandio | last post by:
Hi everyone, I am trying to generate some thumbnails using System.Drawing.Image Class. Actually the GetThumnailImage method. The question is: How can I get a better thumbnail picture? I mean, when the original size is big, for example, 800x600 and I generate a small picture (160x120) the quality is terrible for a jpeg and even orse for a gif. How can I get some better images? There is another class? There is some resolution propertie I...
2
1043
by: asad | last post by:
Hello friends, i have a directory in which my uploaded images are stored i want to create thumnails of these images dynamically and show these thumbnail how can i do this pls tell me about that. Thanks
2
1101
by: asad | last post by:
Hello friends, i have a images folder in which my uploaded images are stored i want to create thumnails of these images dynamically and show these thumbnail for example i have a folder named (cards) and in this folder for example this folder contain 10 images now i want to create a logic that create thumbnails and show created thumbnails on the page at a time. pls tell me about that Thanks
5
1994
by: JJ | last post by:
I have a gallery-like application. (The gallery will be actually presented in Flash, but the management (cms) of the images will be in asp.net. ) My question is, is it ok to create Thumbnail images on the fly by resizing the original sending it to the output stream (i.e. Response.ContentType = "image/jpeg"; Response.BinaryWrite(imageContent) ), or best to actually save the thumbnails to disk. Would this method result in a much slower...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.