Click here to Skip to main content
15,925,113 members
Home / Discussions / C#
   

C#

 
GeneralRe: resize a user control at designtime Pin
Tee+17-Feb-05 22:18
Tee+17-Feb-05 22:18 
GeneralRe: resize a user control at designtime Pin
spif200117-Feb-05 22:28
spif200117-Feb-05 22:28 
GeneralRe: resize a user control at designtime Pin
mav.northwind17-Feb-05 22:19
mav.northwind17-Feb-05 22:19 
GeneralRe: resize a user control at designtime Pin
Tee+18-Feb-05 1:35
Tee+18-Feb-05 1:35 
GeneralDetect windows shutdown and user logoff Pin
the last free name17-Feb-05 21:43
the last free name17-Feb-05 21:43 
GeneralRe: Detect windows shutdown and user logoff Pin
mav.northwind17-Feb-05 22:11
mav.northwind17-Feb-05 22:11 
GeneralRe: Detect windows shutdown and user logoff Pin
the last free name17-Feb-05 22:31
the last free name17-Feb-05 22:31 
QuestionHow can i display 16bir RAW image ? please help. Pin
So-Haeng, Lee17-Feb-05 21:27
So-Haeng, Lee17-Feb-05 21:27 
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 ();
GeneralAsync socket data receive Pin
Joerg_Laukemper17-Feb-05 21:03
Joerg_Laukemper17-Feb-05 21:03 
GeneralDotNet Fx1.1 Sp1 Issue :- Need Urgent help !! Pin
jk chan17-Feb-05 20:07
jk chan17-Feb-05 20:07 
GeneralHelp required Pin
rajababu117-Feb-05 18:33
rajababu117-Feb-05 18:33 
GeneralRe: Help required Pin
Dave Kreskowiak18-Feb-05 4:33
mveDave Kreskowiak18-Feb-05 4:33 
QuestionSetItemData and GetItemData property ??? Pin
Md Saleem Navalur17-Feb-05 18:32
Md Saleem Navalur17-Feb-05 18:32 
AnswerRe: SetItemData and GetItemData property ??? Pin
Luis Alonso Ramos17-Feb-05 18:54
Luis Alonso Ramos17-Feb-05 18:54 
GeneralChange Buffer Pin
Gregg Holter17-Feb-05 17:20
Gregg Holter17-Feb-05 17:20 
Questioncreate a new folder??? Pin
students552 university17-Feb-05 17:17
students552 university17-Feb-05 17:17 
AnswerRe: create a new folder??? Pin
Kodanda Pani17-Feb-05 18:11
Kodanda Pani17-Feb-05 18:11 
AnswerRe: create a new folder??? Pin
Luis Alonso Ramos17-Feb-05 18:48
Luis Alonso Ramos17-Feb-05 18:48 
GeneralEnum and sub classing Pin
ACorbs17-Feb-05 14:56
ACorbs17-Feb-05 14:56 
GeneralRe: Enum and sub classing Pin
S. Senthil Kumar17-Feb-05 19:52
S. Senthil Kumar17-Feb-05 19:52 
GeneralInstalling the .NET framework Pin
Christian Graus17-Feb-05 14:09
protectorChristian Graus17-Feb-05 14:09 
GeneralRe: Installing the .NET framework Pin
Luis Alonso Ramos17-Feb-05 18:08
Luis Alonso Ramos17-Feb-05 18:08 
GeneralDateTime to FILETIME Pin
SandeepN17-Feb-05 13:15
SandeepN17-Feb-05 13:15 
GeneralRe: DateTime to FILETIME Pin
Kodanda Pani17-Feb-05 22:38
Kodanda Pani17-Feb-05 22:38 
GeneralRe: DateTime to FILETIME Pin
SandeepN18-Feb-05 6:00
SandeepN18-Feb-05 6:00 

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.