473,803 Members | 3,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make a diagonal gradient

How do I make a background gradient diagonal instead of just horizontal or
vertical?

This makes the standard horizontal gradient.

progid:dximaget ransform.micros oft.gradient(gr adienttype=1,
startcolorstr=' blue', endcolorstr='wh itesmoke',gradi entType='2');

Thanks.

--
mo*******@noema il.noemail
Mar 10 '07 #1
2 1946
On Mar 10, 7:39 pm, "moondaddy" <moonda...@noem ail.noemailwrot e:
How do I make a background gradient diagonal instead of just horizontal or
vertical?

This makes the standard horizontal gradient.

progid:dximaget ransform.micros oft.gradient(gr adienttype=1,
startcolorstr=' blue', endcolorstr='wh itesmoke',gradi entType='2');
FILTER:PROGID:D XIMAGETRANSFORM .MICROSOFT.GRAD IENT(GRADIENTTY PE=1,
STARTCOLORSTR=' #00B4CCE5', ENDCOLORSTR='#A 0B4CCE5')
PROGID:DXIMAGET RANSFORM.MICROS OFT.GRADIENT(GR ADIENTTYPE=0,
STARTCOLORSTR=' #00B4CCE5', ENDCOLORSTR='#5 0B4CCE5' );

Mar 10 '07 #2
Thanks

"Alexey Smirnov" <al************ @gmail.comwrote in message
news:11******** **************@ n33g2000cwc.goo glegroups.com.. .
On Mar 10, 7:39 pm, "moondaddy" <moonda...@noem ail.noemailwrot e:
>How do I make a background gradient diagonal instead of just horizontal
or
vertical?

This makes the standard horizontal gradient.

progid:dximage transform.micro soft.gradient(g radienttype=1,
startcolorstr= 'blue', endcolorstr='wh itesmoke',gradi entType='2');

FILTER:PROGID:D XIMAGETRANSFORM .MICROSOFT.GRAD IENT(GRADIENTTY PE=1,
STARTCOLORSTR=' #00B4CCE5', ENDCOLORSTR='#A 0B4CCE5')
PROGID:DXIMAGET RANSFORM.MICROS OFT.GRADIENT(GR ADIENTTYPE=0,
STARTCOLORSTR=' #00B4CCE5', ENDCOLORSTR='#5 0B4CCE5' );

Mar 11 '07 #3

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

Similar topics

11
4511
by: Maximus | last post by:
Hi all, Has anyone been able to reterive the gradient selection colors used in outlook 2003? Basically, I have a grid showing a list of records and my client wants the selected row to have the same selection gradient back color as Outlook 2003 has on its left pane. The selected pane in Outlook 2003 have a gradient orange color for blue color scheme in XP. This gradient color changes according to the color schemes of the windows XP. Can...
0
3039
by: David Gouge | last post by:
Hi All, appreciate that this is more gdi+ than c# but always seem to get good answers here, so here goes... In a nutshell, all i want to do is add a gradient background to a ListView. I have gotten so far by: Adding the following to the constructor: this.SetStyle(ControlStyles.UserPaint, true);
4
5890
by: Jon Slaughter | last post by:
I'm drawing a linear gradient and its very "banded". The colors are far enough part that it should be plenty smooth enough but I always get the same number of bands regardless. I've tried to set g.InterpolationMode = InterpolationMode.HighQualityBicubic; g.CompositingQuality = CompositingQuality.HighQuality;
14
12740
by: Olw | last post by:
Hello, Does anyone have a nice link to some code for calculating the gradient of a function in C? Thanks, Olw
1
1662
by: madladuk | last post by:
Hi all. Does anyone have any example of how to do a gradient background whilst moving over graphics and text like the Microsoft web site. On the MS site when you select an area a window popup and as you hover over the sections it fill in a nice gradient background, any assistance? Thanks
2
2609
by: moondaddy | last post by:
I know how to do vertical and horizontal, but not diagonal. filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr= '#0f9ed3' , EndColorStr= 'white' ); and filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,
9
8147
by: Eric Lindsay | last post by:
How do you provide a consistent gradient fill as a background in a liquid layout? If I make a gradient fill image say 1000 pixels wide (and repeat it down the page) to suit a typical computer display, then only a small portion of the gradient will show if the viewpoint is a smaller PDA or phone display. On the other hand, if viewed full screen on a 1920 pixel wide display, I would run out of gradient on one or both sides of the page....
1
7421
by: Allard Warrink | last post by:
I would like to create a transparency gradient over an image using PIL. But I don't have a clue how to do this... Is there anyone out here who could give me some advise?
5
3449
by: Bob Altman | last post by:
Hi all, Here's another rank beginner question. What is the standard way to fill a client-side table cell with a horizontal gradient background? TIA - Bob
0
9700
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
10546
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
10310
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...
0
10068
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
9121
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
6841
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
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3796
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.