Click here to Skip to main content
15,905,967 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
PIEBALDconsult19-Jul-09 17:53
mvePIEBALDconsult19-Jul-09 17:53 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
Brandon Walton19-Jul-09 18:36
Brandon Walton19-Jul-09 18:36 
AnswerRe: Cubic roots of negative numbers, Math.Pow() Pin
harold aptroot19-Jul-09 17:53
harold aptroot19-Jul-09 17:53 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
Brandon Walton19-Jul-09 18:22
Brandon Walton19-Jul-09 18:22 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
harold aptroot19-Jul-09 18:43
harold aptroot19-Jul-09 18:43 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
Brandon Walton19-Jul-09 19:09
Brandon Walton19-Jul-09 19:09 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
PIEBALDconsult19-Jul-09 18:53
mvePIEBALDconsult19-Jul-09 18:53 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
harold aptroot19-Jul-09 18:59
harold aptroot19-Jul-09 18:59 
GeneralRe: Cubic roots of negative numbers, Math.Pow() Pin
PIEBALDconsult19-Jul-09 20:48
mvePIEBALDconsult19-Jul-09 20:48 
AnswerRe: Cubic roots of negative numbers, Math.Pow() Pin
Luc Pattyn20-Jul-09 1:05
sitebuilderLuc Pattyn20-Jul-09 1:05 
QuestionHow many times each unique String appears in the collection. Pin
dsrao19-Jul-09 17:14
dsrao19-Jul-09 17:14 
AnswerRe: How many times each unique String appears in the collection. Pin
PIEBALDconsult19-Jul-09 17:16
mvePIEBALDconsult19-Jul-09 17:16 
AnswerRe: How many times each unique String appears in the collection. Pin
OriginalGriff19-Jul-09 21:55
mveOriginalGriff19-Jul-09 21:55 
GeneralRe: How many times each unique String appears in the collection. Pin
Luc Pattyn20-Jul-09 1:07
sitebuilderLuc Pattyn20-Jul-09 1:07 
GeneralRe: How many times each unique String appears in the collection. Pin
OriginalGriff20-Jul-09 1:23
mveOriginalGriff20-Jul-09 1:23 
GeneralRe: How many times each unique String appears in the collection. Pin
Luc Pattyn20-Jul-09 1:35
sitebuilderLuc Pattyn20-Jul-09 1:35 
GeneralRe: How many times each unique String appears in the collection. Pin
OriginalGriff20-Jul-09 1:41
mveOriginalGriff20-Jul-09 1:41 
QuestionC# Windows Forms: How to filter WM_ACTIVATE and WM_NCACTIVATE messages? Pin
Magnat7519-Jul-09 15:18
Magnat7519-Jul-09 15:18 
AnswerRe: C# Windows Forms: How to filter WM_ACTIVATE and WM_NCACTIVATE messages? Pin
N a v a n e e t h19-Jul-09 16:44
N a v a n e e t h19-Jul-09 16:44 
QuestionHow get a content of field in html table? [modified] Pin
MassimoPallara19-Jul-09 12:36
MassimoPallara19-Jul-09 12:36 
AnswerRe: How get a content of field in html table? Pin
Christian Graus19-Jul-09 14:49
protectorChristian Graus19-Jul-09 14:49 
QuestionImage Brightness and Contrast change together Pin
lexx_zone19-Jul-09 9:32
lexx_zone19-Jul-09 9:32 
Guys, I need help. Sorry for my English now,my brain just refused to work. I have an Image in PictureBox and have some filters to its process: contrast and brightness. Two trackbars controls filters changing values. When trackBar1_ValueChanged or trackBar2_ValueChanged events raises, function ApplyFilter() starts to work in different thread. When I using the brightness trackbar it changes the brightness of basic image. When I using the contrast trackbar it changes the contrast of image, But I don't know how to change the brightness and contrast together and show it in pictureBox component. For example I want to increase a brightness of an image. After that I want to increase a contrast but not of basic image, and what has turned out at brightness increase. After that I want to decrease a brightness to its basic level or lower. I don't know How to explain it clearly... If anybody have Vista you can see the same example in Vista PhotoGallery fix component. There are a lot of filters which you can apply to your image and change it back as you need. Here is a logic of my code...

Bitmap previewimage = null;
int brightness_value = 0;
int contrast_value = 0;

public PicPreviewForm(string filename) 
{
	previewimage = new Bitmap(Image.FromFile(filename));
	pictureBox1.Image = previewimage;
}
public void ApplyFilter()
{
      Bitmap bit;
      bit = new Bitmap(previewimage);
	
if(brightness had been changed)
{
	BrightnessFilter(bit, brightness_value);
}
If(contrast had been changed)
{
	ContrastFilter(bit, contrast_value);            
}
PictureBox.Image = bit;               
                
        
}


I could apply all filters every time when I changing some trackbar but it really decrease program performance..
AnswerRe: Image Brightness and Contrast change together Pin
Christian Graus19-Jul-09 14:07
protectorChristian Graus19-Jul-09 14:07 
QuestionCreate a program play video file on Pocket PC? Pin
phamminh0519-Jul-09 7:43
phamminh0519-Jul-09 7:43 
AnswerRe: Create a program play video file on Pocket PC? Pin
Nishant_Mishra19-Jul-09 19:45
Nishant_Mishra19-Jul-09 19:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.