473,789 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how can i load a picture in a picture box to a image's picture

52 New Member
hi all!
i have a picture box, in that picture box, there is a picture asume it as "pic1.bmp". . now i have made some changes in that picture.

Now i want to load a picture to a image( my form consists of a picture box and a image also).

like image1.picture= loadPicture(pic ture1.picture) ...

but i know that this statement is invalid....

how can i do it? actually.. yesterday i learned how to make changes on a picture and how to save a picture as .bmp..

so i can do one thing like save the modified picture box as .bmp and can load that .bmp into my image....

suppose if i do.. like this.. i need to change my entire code... since in my real application my images are controll array.. and its better to load the pictures from picturebox control array to this image controll array....

is there any posibility of doing like this.... if so kindly help me...

Thanks in advance..
regards:
raghunadhs
Jul 5 '07 #1
3 2593
Killer42
8,435 Recognized Expert Expert
Here's a quick sample I just tested...
Expand|Select|Wrap|Line Numbers
  1. Picture1.Picture = LoadPicture("image name here")
  2. Image1.Picture = Picture1.Picture
I've always been a bit vague on the relationship between the .Picture and .Image properties, though. However, I'm pretty sure that for any changes you make to be copied to the image box, you will have to have the picturebox's AutoRedraw property set to True before you do the drawing.
Jul 5 '07 #2
raghunadhs
52 New Member
HI! KILLER 42
What u have told is working........ . thanks alot....
regards:
raghunadhs



Here's a quick sample I just tested...
Expand|Select|Wrap|Line Numbers
  1. Picture1.Picture = LoadPicture("image name here")
  2. Image1.Picture = Picture1.Picture
I've always been a bit vague on the relationship between the .Picture and .Image properties, though. However, I'm pretty sure that for any changes you make to be copied to the image box, you will have to have the picturebox's AutoRedraw property set to True before you do the drawing.
Jul 5 '07 #3
Killer42
8,435 Recognized Expert Expert
No problem, glad we could help. :)
Jul 5 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3406
by: Dariusz | last post by:
I have a problem with a call a Javascript "window.open()" function which is executed as part of a PHP file when a user clicks on an thumbnail image. The PHP is executed which passes some variables to Javascript to execute the new window opening. But as it does this, the main window is loaded which is blank (the browser URL bar shows the URL of the URL passed to the PHP / Javascript script). I would like to keep the gallery page visible...
3
13883
by: Trevor Fairchild | last post by:
I am making a program that categorizes pictures. The picture paths are stored in an Access Database, vb6 connects using adodc controls. This program works specifically with .jpg files. It will be used by people categorizing thousands of images. The problem I have is that both the picture control, and the image control seem unable to open certain jpg images for an unknown reason. The error message simply states "Invalid Picture". I can...
1
1712
by: Christophe Candas | last post by:
Hye, You will find here under a script which will load a picture in a layer , picture depending on the cursor position. Everything's ok until the line: document.getElementById('zoom').style.background="url('chemin image.gif')"; which doesn't work. The script works (indication in the status barre) but the image is not loaded in the layer... I'm quiet sure it's a problem of url syntaxe but I can't find it ???
2
1347
by: Comfort | last post by:
How can I load a picture direct from the database to my webform? Right now I can load it from the database to a certain drive and load it from that drive to my webform using .imageurl
1
4691
by: jz | last post by:
Hi All, I have an ActiveX control project, in the main form, I have an image control and load a JPG image from by setting Picture property of Image; I build it and everything is good, I checked in my file to Subversion server; and I checked out from another machine. when I tried to open my project, I got an errors: like Microsoft Visual basic, Errors during load, Refer to
2
3744
elamberdor
by: elamberdor | last post by:
Hi All! Well, i'm modifying a dynamic map, with lat and long datapoints, my problem is it loads in text perfectly onto exact points I specify on the map, ..well now I want to load in icons(images) instead of text. (yes i'm being difficult) and i'd like the text to load into a static placeholder symbol instead. Problem is, I can get images to load in a separate file, text to load in a separate file, and text to appear in a static...
2
7050
by: Marcolino | last post by:
Hy Guys, I have a problem loading JPG in a Picture Box. I need to load a jpg files into a PB and then unlock the original JPG. I'm using following code: Dim picture1 As PictureBox Dim OriginalImage As New Bitmap(FilePath) 'Load orginal JPG Dim iImage As New Bitmap(OriginalImage) 'Copy ii into a
3
2894
by: RK | last post by:
Is there an image handling guru out there than can help a newbie with understanding dynamic image creation? The question: I can create an image from within Javascript with MyPic = new Image() ....and then assign a source with MyPic.src = "./picture.gif";
1
3653
anfetienne
by: anfetienne | last post by:
i have this code below that i made....it loads vars from txt file splits it then puts it into an array....once in an array it the brings the pics in from the array to create thumbnails and a larger image. my problem is i have captions to go with it and when i try to load the captions nothing happens or can be seen to be happening. i dont know where i am going wrong as i have no output or compiled errors var locVar = new Array();...
0
9663
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
10195
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
10136
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
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6765
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4090
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
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.