473,804 Members | 3,532 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
13 1475
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 #11
Hi,

The shading models will not work for this application. Two suggestions
create a semi transparent white brush or brighten the image in certain
area to make it look like a light is shining on it. Hope this helps.

Dim bm As New Bitmap("Water lilies.jpg")
Dim brTexture As New
TextureBrush(Bi tmap.FromFile(" WoodTexture.gif "))
Dim p As New Pen(brTexture, 50)

Dim g As Graphics = Graphics.FromIm age(bm)
Dim rDraw As Rectangle = New Rectangle(0, 0, bm.Width,
bm.Height)
Dim brWhite As New SolidBrush(Colo r.FromArgb(48, Color.White))
Dim gp As New GraphicsPath
gp.AddEllipse(b m.Width \ 2, bm.Height \ 2, 500, 500)

Dim regBrighten As New Region(gp)

For x As Integer = 0 To bm.Width - 1
For y As Integer = 0 To bm.Height - 1
Dim pt As New Point(x, y)
If regBrighten.IsV isible(pt) Then
Dim c As Color = bm.GetPixel(x, y)
Dim r, gr, b As Integer
gr = c.G
r = c.R
b = c.B
gr = CInt(gr * 1.8)
r = CInt(r * 1.8)
b = CInt(b * 1.8)

If gr > 255 Then gr = 255
If r > 255 Then r = 255
If b > 255 Then b = 255

c = Color.FromArgb( r, gr, b)
bm.SetPixel(x, y, c)
End If
Next
Next
g.DrawRectangle (p, rDraw)
g.FillEllipse(b rWhite, 50, 50, 100, 100)
PictureBox1.Siz eMode = PictureBoxSizeM ode.StretchImag e
PictureBox1.Ima ge = bm
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.

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

"SStory" <HYPERLINK
"mailto:Th***** **@TAKEOUTTHISS PAMBUSTERsoftho me.net"TheStory s@TAKEOUTTHISSP A
MBUSTERsofthome .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"HY PERLINK
"mailto:vb***@b ellsouth.net"vb ***@bellsouth.n et> wrote in message
news:eB******** ******@TK2MSFTN GP11.phx.gbl...

Hi,

Maybe this will work.
HYPERLINK
"HYPERLINK
"http://www.onteorasoft ware.com/downloads/woodframe.zip"h ttp://www.onteoraso
"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"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


--
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 #12
That is getting closer....
I think maybe I should use a gradient though--bright white in the middle and
moving towards transparent. And of course it needs shadows at the edge of
the picture to give the illusion of indention.

thanks Ken... I will try it with gradients... Haven't done one before but
hope I can figure that out. (have used Photoshop alot; just no experience
programming it.....yet.)

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

The shading models will not work for this application. Two suggestions
create a semi transparent white brush or brighten the image in certain
area to make it look like a light is shining on it. Hope this helps.

Dim bm As New Bitmap("Water lilies.jpg")
Dim brTexture As New
TextureBrush(Bi tmap.FromFile(" WoodTexture.gif "))
Dim p As New Pen(brTexture, 50)

Dim g As Graphics = Graphics.FromIm age(bm)
Dim rDraw As Rectangle = New Rectangle(0, 0, bm.Width,
bm.Height)
Dim brWhite As New SolidBrush(Colo r.FromArgb(48, Color.White))
Dim gp As New GraphicsPath
gp.AddEllipse(b m.Width \ 2, bm.Height \ 2, 500, 500)

Dim regBrighten As New Region(gp)

For x As Integer = 0 To bm.Width - 1
For y As Integer = 0 To bm.Height - 1
Dim pt As New Point(x, y)
If regBrighten.IsV isible(pt) Then
Dim c As Color = bm.GetPixel(x, y)
Dim r, gr, b As Integer
gr = c.G
r = c.R
b = c.B
gr = CInt(gr * 1.8)
r = CInt(r * 1.8)
b = CInt(b * 1.8)

If gr > 255 Then gr = 255
If r > 255 Then r = 255
If b > 255 Then b = 255

c = Color.FromArgb( r, gr, b)
bm.SetPixel(x, y, c)
End If
Next
Next
g.DrawRectangle (p, rDraw)
g.FillEllipse(b rWhite, 50, 50, 100, 100)
PictureBox1.Siz eMode = PictureBoxSizeM ode.StretchImag e
PictureBox1.Ima ge = bm
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.

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

"SStory" <HYPERLINK
"mailto:Th***** **@TAKEOUTTHISS PAMBUSTERsoftho me.net"TheStory s@TAKEOUTTHISSP A MBUSTERsofthome .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"HY PERLINK
"mailto:vb***@b ellsouth.net"vb ***@bellsouth.n et> wrote in message
news:eB******** ******@TK2MSFTN GP11.phx.gbl...

> Hi,
>
> Maybe this will work.
> HYPERLINK
> "HYPERLINK
> "http://www.onteorasoft ware.com/downloads/woodframe.zip"h ttp://www.onteoraso > "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"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


--
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 #13
Hi,

I like how one this works out.

Dim brWhite As New LinearGradientB rush(rDraw, Color.FromArgb( 40,
Color.White), Color.Transpare nt, 90, False)
Dim bl As New Blend

bl.Factors = New Single() {0.0F, 0.1F, 0.5F, 0.7F, 0.7F, 0.5F,
0.3F, 0.2F, 0}

bl.Positions = New Single() {0, 0.1F, 0.2F, 0.5F, 0.6F, 0.7F,
0.8F, 0.9F, 1.0F}

brWhite.Blend = bl
g.FillEllipse(b rWhite, 50, 50, 100, 100)

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

"SStory" <Th*******@TAKE OUTTHISSPAMBUST ERsofthome.net> wrote in message
news:uV******** ******@TK2MSFTN GP11.phx.gbl:
That is getting closer....
I think maybe I should use a gradient though--bright white in the middle
and
moving towards transparent. And of course it needs shadows at the edge of

the picture to give the illusion of indention.

thanks Ken... I will try it with gradients... Haven't done one before but

hope I can figure that out. (have used Photoshop alot; just no experience

programming it.....yet.)

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

The shading models will not work for this application. Two
suggestions
create a semi transparent white brush or brighten the image in certain
area to make it look like a light is shining on it. Hope this helps.

Dim bm As New Bitmap("Water lilies.jpg")
Dim brTexture As New
TextureBrush(Bi tmap.FromFile(" WoodTexture.gif "))
Dim p As New Pen(brTexture, 50)

Dim g As Graphics = Graphics.FromIm age(bm)
Dim rDraw As Rectangle = New Rectangle(0, 0, bm.Width,
bm.Height)
Dim brWhite As New SolidBrush(Colo r.FromArgb(48, Color.White))
Dim gp As New GraphicsPath
gp.AddEllipse(b m.Width \ 2, bm.Height \ 2, 500, 500)

Dim regBrighten As New Region(gp)

For x As Integer = 0 To bm.Width - 1
For y As Integer = 0 To bm.Height - 1
Dim pt As New Point(x, y)
If regBrighten.IsV isible(pt) Then
Dim c As Color = bm.GetPixel(x, y)
Dim r, gr, b As Integer
gr = c.G
r = c.R
b = c.B
gr = CInt(gr * 1.8)
r = CInt(r * 1.8)
b = CInt(b * 1.8)

If gr > 255 Then gr = 255
If r > 255 Then r = 255
If b > 255 Then b = 255

c = Color.FromArgb( r, gr, b)
bm.SetPixel(x, y, c)
End If
Next
Next
g.DrawRectangle (p, rDraw)
g.FillEllipse(b rWhite, 50, 50, 100, 100)
PictureBox1.Siz eMode = PictureBoxSizeM ode.StretchImag e
PictureBox1.Ima ge = bm
Ken
------------------------------

"Ken Tucker [MVP]" <HYPERLINK
"mailto:vb***@b ellsouth.net"vb ***@bellsouth.n et> 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.

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

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

MBUSTERsofthome .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"HY PERLINK
> "mailto:vb***@b ellsouth.net"HY PERLINK
> "mailto:vb***@b ellsouth.net"vb ***@bellsouth.n et> wrote in message
> news:eB******** ******@TK2MSFTN GP11.phx.gbl...
>
> Hi,
> >
> > Maybe this will work.
> > HYPERLINK
> > "HYPERLINK
> >
"HYPERLINK
"http://www.onteorasoft ware.com/downloads/woodframe.zip"h ttp://www.onteoraso
"http://www.onteorasoft ware.com/downloads/woodframe.zip"h ttp://www.onteoraso

>
"HYPERLINK
"http://www.onteorasoft ware.com/downloads/woodframe.zip"h ttp://www.onteoraso
"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"HYPERLINK
> > "mailto:hi***** **********@gmx. at"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

--
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.6 - Release Date: 6/25/2004
Nov 20 '05 #14

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
1470
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
3247
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
1342
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
2685
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
0
9582
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
10580
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
10082
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
9157
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...
0
6854
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
5525
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
5652
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3821
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2993
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.