|
So, you simply want someone else to do your homework, so that you can get a grade that you don't deserve?
---
b { font-weight: normal; }
|
|
|
|
|
dude,just because Im asking a question doesnt meant Im doing it my homework? , but thank anyway!!
buzz up
|
|
|
|
|
shizzlebrown wrote: dude,just because Im asking a question doesnt meant Im doing it my homework? , but thank anyway!!
Then WTF are you asking the question for? You have not replied with ANY reasonable information for us to help you, so either put up or shut up - dude.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
(Translation: I'll show you the way, but not write the code for you.)
|
|
|
|
|
shizzlebrown wrote: Need help to create simple fibonacci recursive, factorial, GCD recursive, the towerof honei.
Don't you mean the towers of hanoi?
In any case what part are you having problems with? Understanding the homework question, don't know where to start, can't put logic to code, want an entire program written for you etc...?
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
(Translation: I'll show you the way, but not write the code for you.)
|
|
|
|
|
thank u for ur kind?
buzz up
|
|
|
|
|
i have been working on FTP (file transfer protocol) . actually i wanted to design a client that can download and upload files to a ftp server. I have a problem that how I download and upload the file through ftp(file trasfer protocol).
haseeb
|
|
|
|
|
How to create a file rpt for a new crystal report layout? thank you
|
|
|
|
|
the column click event from listview doesnt handle the right mouse button? how to get it working
|
|
|
|
|
You need to override the OnMouseDown event and check the parameter
if(e.Button == MouseButtons.Right)
object obj = this.shapesListView.GetChildAtPoint(e.Location);
...
Check out the following article for details.
|
|
|
|
|
Good day Guys,
Please help! I'm in a dire situation right now. I have a program which works much like a cash register. I have a set of command buttons in one form in which I want to change the properties (e.g., text/caption, font size, backcolor, etc...) based on what is stored from the database. The thing is, I don't know how can that be specified! Please help!
|
|
|
|
|
Ok I am in a dilema here. I am working on a BI module. I am reading the data from a tabl using a Sql's "With Cube" function, my result set looks like following:
+---------+-------------+----------------+
|#ofReqs--|---SDate----|Department------|
+---------+-------------+----------------+
|--------3|3/10/2006----|--Hardware-----|
+---------+-------------+----------------+
|--------2|3/12/2006----|--Hardware-----|
+---------+-------------+----------------+
|--------5|3/15/2006----|--Hardware-----|
+---------+-------------+----------------+
|--------4|3/17/2006----|--Hardware-----|
+---------+-------------+----------------+
|--------9|3/10/2006----|--SoftWare-----|
+---------+-------------+----------------+
|--------8|3/12/2006----|--SoftWare-----|
+---------+-------------+----------------+
|--------5|3/14/2006----|--SoftWare-----|
+---------+-------------+----------------+
|--------9|3/15/2006----|--SoftWare-----|
------------------------------------------
What I need is a collection of Reqs; a collection of Date; a Collection of Department but I need them to be related with each other cuz I need to use them on a graph.
What I am trying to display on the graph is as follows:
Day wise No of Reqs made to a Department.
something like NameValueCollection<string, string=""> so if a string key [Department] is repeted the result would get added to it another element does not get created; but with three values NameValueCollection<string, string,="" double="">
Whatever.Add("Software", "3/14/2006", 5);
//result Software [Key] - 3/14/2006, 5 [Value]
Whatever.Add("Hardware", "3/14/2006" 3);
//reult Hardware[Key] - 3/14/2006, 5 [Value]
Whatever.Add("Software" - 3/10/2006, 4);
//result Software [Key] - [3/14/2006, 5] [3/10/2006,4] [Value]
Something like... I dont know, I hope I am not over complecating the problem. Does any one have a clue what I am talking about
|
|
|
|
|
|
I thought about that
Lets say I create a dataset. How am I going to get the result set that I want? Can I query against the DataSet?
Would you be able to give me an example please? Thanks for the help.
|
|
|
|
|
Hi!
I have a little code to resize and watermark images. The problem is that it generates images with really poor quality. I have a comparison below with my results with code and PhotoShop, what I want is to make the code generate a copy with the same quality as PhotoShop, if it's possible. You just have to tell me what to add and where! Please!
These images are automatically resized from a much bigger image found at:
http://www.foh.nu/heli.jpg[^]
Generated with code: http://www.foh.nu/heli1.jpg[^]
Generated with PhotoShop: http://www.foh.nu/heli2.jpg[^]
Don't change too much in the code, I still have to remain the canvas and image as is, becouse I have to draw more images into the canvas later on, for protection (copyright image, transparent, etc.)
This is the code at the moment:
<br />
void makeThumbnail()<br />
{<br />
System.Drawing.Image image = System.Drawing.Image.FromFile("C:\\Inetpub\\wwwroot\\heli.jpg");<br />
Bitmap canvas = new Bitmap(200, 283, image.PixelFormat);<br />
<br />
Graphics g = Graphics.FromImage(canvas);<br />
<br />
g.DrawImage(image, 0, 0, 200, 283);<br />
<br />
canvas.Save("C:\\Inetpub\\wwwroot\\1.jpg", ImageFormat.Jpeg);<br />
<br />
image.Dispose();<br />
canvas.Dispose();<br />
}<br />
Hope you can help! Cheers!
-- modified at 20:10 Friday 17th March, 2006
|
|
|
|
|
try adding
g.InterpolationMode = InterpolationMaode.HighQualityBicubic;
|
|
|
|
|
Hi
You can use a quality parameter when saving as a jpeg:
...
int quality = 90;
EncoderParameters parameters = new EncoderParameters( 1 );
parameters.Param[ 0 ] = new EncoderParameter( Encoder.Quality, quality );
ImageCodecInfo codec = GetImageCodecInfo( ImageFormat.Jpeg );
canvas.Save("C:\\Inetpub\\wwwroot\\1.jpg", codec, parameters );
...
public static ImageCodecInfo GetImageCodecInfo( ImageFormat format )
{
ImageCodecInfo[] codecs = ImageCodecInfo.GetImageEncoders();
foreach ( ImageCodecInfo codec in codecs )
if ( codec.FormatID == format.Guid )
return codec;
return null;
}
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
<br />
<br />
public static ImageCodecInfo GetImageCodecInfo(ImageFormat format)<br />
{<br />
ImageCodecInfo[] codecs = ImageCodecInfo.GetImageEncoders();<br />
foreach(ImageCodecInfo codec in codecs)<br />
{<br />
if(codec.FormatID == format.Guid)<br />
{<br />
return codec;<br />
return null;<br />
}<br />
}<br />
}<br />
<br />
void makeThumbnail()<br />
{<br />
System.Drawing.Image image = System.Drawing.Image.FromFile("C:\\Inetpub\\wwwroot\\heli.jpg");<br />
Bitmap canvas = new Bitmap(200, 283, image.PixelFormat);<br />
<br />
Graphics g = Graphics.FromImage(canvas);<br />
<br />
g.DrawImage(image, 0, 0, 200, 283);<br />
<br />
int quality = 90;<br />
EncoderParameters parameters = new EncoderParameters(1);<br />
parameters.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, quality);<br />
<br />
ImageCodecInfo codec = GetImageCodecInfo(ImageFormat.Jpeg);<br />
canvas.Save("C:\\Inetpub\\wwwroot\\1.jpg", codec, parameters);<br />
<br />
image.Dispose();<br />
canvas.Dispose();<br />
}<br />
<br />
Gives the following error:
Compiler Error Message: CS0161: 'ASP.image_aspx.GetImageCodecInfo(System.Drawing.Imaging.ImageFormat)': not all code paths return a value
On line:
<br />
public static ImageCodecInfo GetImageCodecInfo(ImageFormat format)<br />
-- modified at 10:29 Saturday 18th March, 2006
|
|
|
|
|
Watch your brackets
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
|
You can try setting the quality to 100%.
If that still is not good enough, then you could try saving in a loseless format such as png ( then you don't need the quality parameter ).
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
Not a bad idea actually ..
Cheers
|
|
|
|
|
Actually that doesn't solve a thing. It still makes it crappy quality. It's not the loss that's the problem, it's the antialiasing .. it doesn't do it when I resize the image.
Still get the same result. :-/
|
|
|
|
|
Have you tried using Image.GetThumbnailImage ?
I'm running out of ideas here
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
I don't know how to use it but I'll figure it out!
Thank you for the input. I'll get back on the thread when I've got the time to investigate it more =)
|
|
|
|
|
Have a look at this[^] article.
|
|
|
|