Click here to Skip to main content
15,921,837 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralNeed .Net WebServices benchmark tool Pin
KeepSmilin14-Jul-05 0:19
KeepSmilin14-Jul-05 0:19 
GeneralRe: Need .Net WebServices benchmark tool Pin
Dave Kreskowiak14-Jul-05 4:37
mveDave Kreskowiak14-Jul-05 4:37 
GeneralRe: Need .Net WebServices benchmark tool Pin
Anonymous14-Jul-05 13:53
Anonymous14-Jul-05 13:53 
GeneralViewing TIFF files Pin
LasVegasGuy13-Jul-05 13:22
LasVegasGuy13-Jul-05 13:22 
GeneralRe: Viewing TIFF files Pin
sarabjs15-Jul-05 4:03
sarabjs15-Jul-05 4:03 
GeneralImage Binarization Pin
sarabjs13-Jul-05 7:07
sarabjs13-Jul-05 7:07 
GeneralRe: Image Binarization Pin
Christian Graus13-Jul-05 12:41
protectorChristian Graus13-Jul-05 12:41 
GeneralRe: Image Binarization - Solution found Pin
sarabjs14-Jul-05 3:55
sarabjs14-Jul-05 3:55 
Thanks Christian,

I found a solution from: http://www.bobpowell.net/onebit.htm

Here's what I did:

// new bitmap
Bitmap bm=new Bitmap(iwd, iht,PixelFormat.Format1bppIndexed);
BitmapData bmdn=bm.LockBits(new Rectangle(0,0,bm.Width,bm.Height),ImageLockMode.ReadWrite,PixelFormat.Format1bppIndexed);

// variables
int iIndex;
byte bP, bMask;

for(int y=0;y<iht;++y)
{
for(int x="0;x<iwd;++x)
{
iIndex=y*bmdn.Stride+(x">>3);
bP=Marshal.ReadByte(bmdn.Scan0,iIndex);
bMask=(byte)(0x80>>(x&0x7));
if (ConditionA) bP|=bMask;
else bP &=(byte)(bMask^0xff);
Marshal.WriteByte(bmdn.Scan0,iIndex,bP);
}
}
bm.UnlockBits(bmdn);
GeneralRe: Image Binarization - Solution found Pin
Christian Graus14-Jul-05 11:11
protectorChristian Graus14-Jul-05 11:11 
GeneralRe: Image Binarization - Solution found Pin
sarabjs15-Jul-05 3:58
sarabjs15-Jul-05 3:58 
GeneralRe: Image Binarization - Solution found Pin
Christian Graus17-Jul-05 12:58
protectorChristian Graus17-Jul-05 12:58 
GeneralRe: Image Binarization - Solution found Pin
sarabjs20-Jul-05 5:07
sarabjs20-Jul-05 5:07 
GeneralCopying Object Types Pin
SamM13-Jul-05 6:14
SamM13-Jul-05 6:14 
GeneralRe: Copying Object Types Pin
S. Senthil Kumar13-Jul-05 6:43
S. Senthil Kumar13-Jul-05 6:43 
GeneralRe: Copying Object Types Pin
SamM13-Jul-05 22:30
SamM13-Jul-05 22:30 
QuestionHow to change the SourcePath in a Microsoft Installer project? Pin
bondguru12-Jul-05 20:18
bondguru12-Jul-05 20:18 
AnswerRe: How to change the SourcePath in a Microsoft Installer project? Pin
rwestgraham13-Jul-05 15:22
rwestgraham13-Jul-05 15:22 
GeneralMysterious application crash Pin
RajeshGuptha12-Jul-05 5:33
RajeshGuptha12-Jul-05 5:33 
GeneralRe: Mysterious application crash Pin
Christian Graus12-Jul-05 13:34
protectorChristian Graus12-Jul-05 13:34 
GeneralRe: Mysterious application crash Pin
Ray Cassick12-Jul-05 18:33
Ray Cassick12-Jul-05 18:33 
GeneralRe: Mysterious application crash Pin
RajeshGuptha12-Jul-05 22:31
RajeshGuptha12-Jul-05 22:31 
GeneralRe: Mysterious application crash Pin
Robert Rohde13-Jul-05 4:35
Robert Rohde13-Jul-05 4:35 
GeneralRe: Mysterious application crash Pin
Daniel Turini14-Jul-05 9:45
Daniel Turini14-Jul-05 9:45 
GeneralBluetooth Connectivity Pin
sagar.pise12-Jul-05 0:41
sagar.pise12-Jul-05 0:41 
GeneralWindows event long permissions Pin
Ray Cassick11-Jul-05 17:27
Ray Cassick11-Jul-05 17:27 

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.