473,795 Members | 3,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Graphics Question

I need to be able to give the appearance of glass over a picture inside of a
frame.

How can I do this in real time given that the picture will change?

Is there a way using the graphics to make it look like the picture has glass
in front of it?

Thanks,

Shane
Nov 20 '05 #1
13 1474
http://www.vbdotnetheaven.com/

SStory wrote:
I need to be able to give the appearance of glass over a picture inside of a
frame.

How can I do this in real time given that the picture will change?

Is there a way using the graphics to make it look like the picture has glass
in front of it?

Thanks,

Shane


Nov 20 '05 #2
* "SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.net> scripsit:
I need to be able to give the appearance of glass over a picture inside of a
frame.

How can I do this in real time given that the picture will change?

Is there a way using the graphics to make it look like the picture has glass
in front of it?


I am not sure what you mean by "look like the picture has glass in front
of it". 100 % transparent class? Do you want to simulate reflections?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
Well, I am tryign to make a picture look like it is really ina picture
frame and need it to appear to have the glass over the picture? Any
suggestions? I am sure it would be reflections of some sort but have no idea
how to do it....

shane

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:2j******** *****@uni-berlin.de...
* "SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.net> scripsit:
I need to be able to give the appearance of glass over a picture inside of a frame.

How can I do this in real time given that the picture will change?

Is there a way using the graphics to make it look like the picture has glass in front of it?


I am not sure what you mean by "look like the picture has glass in front
of it". 100 % transparent class? Do you want to simulate reflections?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #4
* "SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.net> scripsit:
Well, I am tryign to make a picture look like it is really ina picture
frame and need it to appear to have the glass over the picture? Any
suggestions? I am sure it would be reflections of some sort but have no idea
how to do it....


I am not sure how to do that too. The easiest way would be to overlay
another semitransparent image (PNG) that adds some effects to the
image. But I don't have a semitransparent PNG here at the moment, so I
cannot test it.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
Hi,

Maybe this will work.
http://www.onteorasoftware.com/downloads/woodframe.zip

Ken
---------------------

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:2j******** *****@uni-berlin.de:
* "SStory" <HYPERLINK
"mailto:Th***** **@TAKEOUTTHISS PAMBUSTERsoftho me.net"TheStory s@TAKEOUTTHISSP A
MBUSTERsofthome .net> scripsit:
Well, I am tryign to make a picture look like it is really ina
picture
frame and need it to appear to have the glass over the picture? Any
suggestions? I am sure it would be reflections of some sort but have no
idea
how to do it....

I am not sure how to do that too. The easiest way would be to overlay
another semitransparent image (PNG) that adds some effects to the
image. But I don't have a semitransparent PNG here at the moment, so I
cannot test it.


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004
Nov 20 '05 #6
* Ken Tucker [MVP] <vb***@bellsout h.net> scripsit:
Maybe this will work.
http://www.onteorasoftware.com/downloads/woodframe.zip


Nice demo.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7
Thanks for the demo Ken, but I am looking I suppose for the White
reflections.

In Photoshop one would probably paint a few semi transparent white spots on
the photo to make it look as though the glass were reflecting a little light
and thus the picture would appear to be behind glass. Still not sure and
this
as much and art question as a "how to do it" in vb.net graphics question.

Do I need some sort of light source producing algorithm for that or what?
Maybe better just to forget the glass effect.

Thanks for the attempt.

Shane

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:eB******** ******@TK2MSFTN GP11.phx.gbl...
Hi,

Maybe this will work.
http://www.onteorasoftware.com/downloads/woodframe.zip

Ken
---------------------

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:2j******** *****@uni-berlin.de:
* "SStory" <HYPERLINK
"mailto:Th***** **@TAKEOUTTHISS PAMBUSTERsoftho me.net"TheStory s@TAKEOUTTHISSP A MBUSTERsofthome .net> scripsit:
Well, I am tryign to make a picture look like it is really ina
picture
frame and need it to appear to have the glass over the picture? Any
suggestions? I am sure it would be reflections of some sort but have no idea
how to do it....

I am not sure how to do that too. The easiest way would be to overlay
another semitransparent image (PNG) that adds some effects to the
image. But I don't have a semitransparent PNG here at the moment, so I
cannot test it.


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004

Nov 20 '05 #8
Hi,

Rod Stephens book Visual Basic Graphics programming has some vb classic
examples on shading models. I will look at it and see if I can upgrade
an example for you.

http://www.vb-helper.com/vbgp.htm
Ken
------------------------

"SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:#t******** ******@TK2MSFTN GP10.phx.gbl:
Thanks for the demo Ken, but I am looking I suppose for the White
reflections.

In Photoshop one would probably paint a few semi transparent white spots
on
the photo to make it look as though the glass were reflecting a little
light
and thus the picture would appear to be behind glass. Still not sure and

this
as much and art question as a "how to do it" in vb.net graphics
question.

Do I need some sort of light source producing algorithm for that or what?

Maybe better just to forget the glass effect.

Thanks for the attempt.

Shane

"Ken Tucker [MVP]" <HYPERLINK
"mailto:vb***@b ellsouth.net"vb ***@bellsouth.n et> wrote in message
news:eB******** ******@TK2MSFTN GP11.phx.gbl...
Hi,

Maybe this will work.
HYPERLINK
"http://www.onteorasoft ware.com/downloads/woodframe.zip"h ttp://www.onteoraso
ftware.com/downloads/woodframe.zip

Ken
---------------------

"Herfried K. Wagner [MVP]" <HYPERLINK
"mailto:hi***** **********@gmx. at"hi********** *****@gmx.at> wrote in
message
news:2j******** *****@uni-berlin.de:

* "SStory" <HYPERLINK
"mailto:Th***** **@TAKEOUTTHISS PAMBUSTERsoftho me.net"TheStory s@TAKEOUTTHISSP A

MBUSTERsofthome .net> scripsit:
Well, I am tryign to make a picture look like it is really ina
> picture
> frame and need it to appear to have the glass over the picture?
> Any
> suggestions? I am sure it would be reflections of some sort but
> have
no
idea
> how to do it....

I am not sure how to do that too. The easiest way would be to
overlay
another semitransparent image (PNG) that adds some effects to the
image. But I don't have a semitransparent PNG here at the moment, so
I
cannot test it.

--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004
Nov 20 '05 #9
Thanks Ken.

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:OK******** *****@TK2MSFTNG P11.phx.gbl...
Hi,

Rod Stephens book Visual Basic Graphics programming has some vb classic
examples on shading models. I will look at it and see if I can upgrade
an example for you.

http://www.vb-helper.com/vbgp.htm
Ken
------------------------

"SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:#t******** ******@TK2MSFTN GP10.phx.gbl:
Thanks for the demo Ken, but I am looking I suppose for the White
reflections.

In Photoshop one would probably paint a few semi transparent white spots
on
the photo to make it look as though the glass were reflecting a little
light
and thus the picture would appear to be behind glass. Still not sure and
this
as much and art question as a "how to do it" in vb.net graphics
question.

Do I need some sort of light source producing algorithm for that or what?
Maybe better just to forget the glass effect.

Thanks for the attempt.

Shane

"Ken Tucker [MVP]" <HYPERLINK
"mailto:vb***@b ellsouth.net"vb ***@bellsouth.n et> wrote in message
news:eB******** ******@TK2MSFTN GP11.phx.gbl...
Hi,

Maybe this will work.
HYPERLINK
"http://www.onteorasoft ware.com/downloads/woodframe.zip"h ttp://www.onteoraso ftware.com/downloads/woodframe.zip

Ken
---------------------

"Herfried K. Wagner [MVP]" <HYPERLINK
"mailto:hi***** **********@gmx. at"hi********** *****@gmx.at> wrote in
message
news:2j******** *****@uni-berlin.de:

> * "SStory" <HYPERLINK
>

"mailto:Th***** **@TAKEOUTTHISS PAMBUSTERsoftho me.net"TheStory s@TAKEOUTTHISSP A
> MBUSTERsofthome .net> scripsit:
>

> > Well, I am tryign to make a picture look like it is really ina
> > picture
> > frame and need it to appear to have the glass over the picture?
> > Any
> > suggestions? I am sure it would be reflections of some sort but
> > have


no
> > idea
> > how to do it....
>
>

> I am not sure how to do that too. The easiest way would be to
> overlay
> another semitransparent image (PNG) that adds some effects to the
> image. But I don't have a semitransparent PNG here at the moment, so > I
> cannot test it.
>

--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004

Nov 20 '05 #10

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

Similar topics

12
2389
by: Sanjay | last post by:
hi, We are currently porting our project from VB6 to VB .NET. Earlier we used to make scale transformations on objects like pictureBox , forms etc.Now Such transformations are made on the graphics object of the form/pictureBox. Should It be better if make a graphics object from my pictureBox in load event handler of the form and store it as member variable of the form , make
13
2269
by: Jason Swett | last post by:
I want to do graphics with C++. Surprisingly, so far nobody has been able to tell me anything helpful. How do I do it? Any input would be greatly appreciated. Jason
4
3363
by: Martin | last post by:
I am using graphics as backgrounds for forms,buttons,labels etc. The question is: is it faster to load all graphics from files on app start or to use it embeded (places in editor during design). Reason for my question is that application has 5mb, while without graphics it has cca 400kb. Graphic files (bmps) take about 200kb (in program, they are repeated many times, ie almost all labels (around 200) have same background image)). Also,...
2
1468
by: eBob.com | last post by:
This real novice VB.NET programmer wants to put a "scatterplot" (just a bunch of dots) on his form. There'll be other stuff on the form too, but it's the scatterplot which I need your help on. Is PictureBox the way to go? If so I am not finding any SIMPLE examples using PictureBox in VB.NET. If it matters ... I will eventually want to detect when the move moves over one of the dots and will want the graph to grow and shrink as the...
6
3245
by: Chris Dunaway | last post by:
The method for printing documents in .Net can be confusing, especially for newer users. I would like to create a way to simplify this process. My idea would be implemented using a PrintDocument (much like the current model), but my PrintDocument would have a Pages collection such that each time you need to have an additional page, you would just add another page to the collection and then use the page object for the actual drawing etc. ...
15
1854
by: Hamed | last post by:
Have I posted the message to wrong newsgroup? Or Does the question is so much strage? Would someone please kindly direct me to a true newsgroup or resource? Best Regards Hamed
1
1482
by: James Willmott | last post by:
If I have a question, about how to implement a graphics algorithm in C++, but not specifically related to getting the graphics on screen (that I can work out for myself). Would asking for help in the implemention ( asking things like whether I should use std::vector vs std::list for example ) be off topic here? Thanks, jw.
1
1340
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Email Question: When I send an email (basically a sms to a phone) from ms outlook it works fine. When I try to send it pragmatically I get an error stating that it can’t relay for <the email address> Try If Not strMailSv = "" Then If Not msgTo = "" Then
3
1741
by: t | last post by:
I have been learning C++ on my own. For some projects, I would like to use graphics. What is the easiest way to do this? (I am using Visual Studio Express 2005.) Separate from the ease of use question, what way(s) are most used? I have heard of things like qt... Would it be easier to just learn and use C# instead?
6
2683
by: Dilip | last post by:
Howdy Folks I have a display where the Graphics.DrawString function is called to display something. Since the text seems to be larger than its bounding rectangle, the call basically splits the string into multiple lines. Is there a way to find out into how many lines the string was split? I am asking because this string is being displayed inside an owner
1
10164
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
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
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
7538
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
5437
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...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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.