Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
QuestionHow To Get Form Instance of Requesting WebForm in Global.asax.cs Pin
Rajesh Thomas20-Feb-05 1:02
Rajesh Thomas20-Feb-05 1:02 
GeneralHelp with figuring out enums Pin
meepymoo20-Feb-05 0:37
meepymoo20-Feb-05 0:37 
GeneralRe: Help with figuring out enums Pin
mav.northwind20-Feb-05 1:16
mav.northwind20-Feb-05 1:16 
GeneralRe: Help with figuring out enums Pin
meepymoo20-Feb-05 2:01
meepymoo20-Feb-05 2:01 
GeneralRe: Help with figuring out enums Pin
leppie20-Feb-05 2:47
leppie20-Feb-05 2:47 
GeneralRe: Help with figuring out enums Pin
mav.northwind20-Feb-05 3:59
mav.northwind20-Feb-05 3:59 
Generalworking with performance counters and categories Pin
sagmam19-Feb-05 21:57
sagmam19-Feb-05 21:57 
QuestionHow can i display 16bir RAW image ? please help. Pin
So-Haeng, Lee19-Feb-05 20:28
So-Haeng, Lee19-Feb-05 20:28 
hi I'm a Korean student.
I'm studing C# and image processing.
I am reading a book, the book's name is GDI+ Programming wrote by you.
I'm studnig 16bit RAW image file.
But I did'nt display on screen.
How can i do?
please help and detail information.

-----my programming source is here -----

FileStream fs = File.Open(strFileName, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite);
BufferedStream buf = new BufferedStream (fs);

BinaryReader r = new BinaryReader(buf);
Bitmap bitmaps = new Bitmap (_Define._ImageWidth, _Define._ImageHeight, PixelFormat.Format16bppGrayScale);// .Format48bppRgb);
BitmapData bmData = bitmaps.LockBits (new Rectangle(0, 0, _Define._ImageWidth, _Define._ImageHeight), ImageLockMode.ReadWrite, PixelFormat.Format16bppGrayScale);

bitmaps.UnlockBits (bmData);
UInt16 *p = (UInt16 *)(void *)bmData.Scan0.ToPointer();

UInt16 swap;
int nTotal = _Define._ImageHeight*_Define._ImageWidth;
byte [] data = new byte [nTotal];
try
{
int nPer = nTotal / 10;
int nCnt = 0;

for(int y = 0; y < nTotal; y++) // 원본을 로드하기위한 For문...
{
if (y%nPer == 0) {
pLoading._Percent = nCnt;
nCnt += 10;
pLoading.Refresh ();
}

swap = (UInt16)(r.ReadInt16 ());
*(p) = swap;
p++;
}
}

catch(Exception fo)
{
MessageBox.Show(fo.ToString());
}
// m_pPanel is View

MDProcess.ImageObject pImage = new ImageObject (m_pPanel);
pImage._ImageName= strFileName;
pImage._rcBound = InitImagePT (iFiles);

pLoading._Percent = 100;
pLoading.Refresh ();
m_alImageList.Add (pImage);

pLoading._Counter = i;
pLoading._Total = alFiles.Count;
pLoading.Refresh ();
bitmaps.Dispose ();

fs.Flush ();
buf.Close ();
fs .Close ();
r.Close ();
Questionhow to use regex to match this string? Pin
sssa200019-Feb-05 20:10
sssa200019-Feb-05 20:10 
AnswerRe: how to use regex to match this string? Pin
Kevin McFarlane20-Feb-05 0:11
Kevin McFarlane20-Feb-05 0:11 
AnswerRe: how to use regex to match this string? Pin
Christian Graus20-Feb-05 10:18
protectorChristian Graus20-Feb-05 10:18 
GeneralToggle Languages in MDI Form Pin
ye win zaw19-Feb-05 19:16
ye win zaw19-Feb-05 19:16 
QuestionHow do i listen to the desktops windows messages? Pin
FocusedWolf19-Feb-05 16:10
FocusedWolf19-Feb-05 16:10 
AnswerRe: How do i listen to the desktops windows messages? Pin
FocusedWolf19-Feb-05 16:12
FocusedWolf19-Feb-05 16:12 
QuestionApplication start at boot time? Pin
bmk_shepherd19-Feb-05 14:44
bmk_shepherd19-Feb-05 14:44 
AnswerRe: Application start at boot time? Pin
Luis Alonso Ramos19-Feb-05 18:41
Luis Alonso Ramos19-Feb-05 18:41 
GeneralKey intercepts Pin
Esmo200019-Feb-05 13:24
Esmo200019-Feb-05 13:24 
GeneralRe: Key intercepts Pin
Luis Alonso Ramos19-Feb-05 18:45
Luis Alonso Ramos19-Feb-05 18:45 
GeneralRe: Key intercepts Pin
Esmo200021-Feb-05 13:22
Esmo200021-Feb-05 13:22 
GeneralRe: Key intercepts Pin
Luis Alonso Ramos21-Feb-05 14:16
Luis Alonso Ramos21-Feb-05 14:16 
GeneralRe: Key intercepts Pin
S. Senthil Kumar20-Feb-05 8:41
S. Senthil Kumar20-Feb-05 8:41 
GeneralCreate Registry Key during theInstallation Pin
Sasuko19-Feb-05 11:27
Sasuko19-Feb-05 11:27 
GeneralRe: Create Registry Key during theInstallation Pin
xpmule20-Feb-05 17:01
xpmule20-Feb-05 17:01 
GeneralRe: Create Registry Key during theInstallation Pin
Kodanda Pani22-Feb-05 1:03
Kodanda Pani22-Feb-05 1:03 
QuestionQuesions in this.Controls.Remove()/Add() ?? Pin
luckyShek19-Feb-05 10:13
luckyShek19-Feb-05 10:13 

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.