|
Hello,
You could fine .NET links by clicking here http://www.insidedotnet.com
|
|
|
|
|
hcmuns wrote:
You could fine .NET links by clicking here
Except you couldn't work out how to make a link.....
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
And its just a squatter site with a few links.
|
|
|
|
|
|
The site is being built for Microsoft .NET
If you would like to develop the site with me, please send your email to hcmuns@gmail.com
Thanks in advance
|
|
|
|
|
No i'm sorry, way too busy...
But some links would be nice, you could start with one to CP
|
|
|
|
|
Hi. I was wondering if anyone know of a simliar project for .Net projects which Maven (http://maven.apache.org) is for Java projects? Or is anyone using Maven for .Net project (if it's possible), if so, could you post a description of how you went forth to accomplish it?
Thanks.
|
|
|
|
|
Hello There My Article Updated I soluted Soruce code Problem
Ahmed Erarslan
MCAD,MCDBA,MCP
MCSD.NET
|
|
|
|
|
Help please!
How can I convert dynamic charts inside a web page into images. Is there a way to get the active-x object to draw into a blank image container or a way to convert the container into an image? The problem is the active-x displays the chart inside a web page and I need a way to get the image without loading it inside the web page / browser?
cheers
|
|
|
|
|
|
Does anybody know how to get the Windows master volume level for display in a Windows Form Application? I am trying to do this without using the DirectX implementation.
|
|
|
|
|
Hello all.
Would anyone know a good free WebService benchmark tool?
I'm creating 2 different implementations of custom-made proxy with extra logics and would like to find the performance differences.
Thanks
|
|
|
|
|
That depends on exactly what you want to time. The complete round trip or just a section of the call.
A WebService is nothing but a web page with a very specific purpose. For a complete round trip, you could use a HTTP stress tool to do this.
For timing various parts of your service code, you can put in timing code and have that code report to a log or database on the server.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I wanted to get section of the call. For example, time to make the invocation to the service but not time to get the response.
I wanted to avoid putting in a timiing code because that always seems to get affected by the background processes or any traffic on the servcer.
I guess I might have to use the stress tool.
Thanks for the reply.
|
|
|
|
|
Does the .Net Framework have any classes to view TIFF files? I find a lot of references to TIFF files in the online documentation, but none of them say anything about viewing.
Man Learns from History that he never learns from History
|
|
|
|
|
I'm not sure whether the TIFF files need to handled any differently. I believe you can directly instantiate an Image object using the FromFile() method and use it howsoever you desire.
|
|
|
|
|
I load an image, convert it to bitmapData using the 24bppRGB pixel format, binarize it using a simple routine (shown below) and save it using the Image.Save() method. The image saved however is still 24bppRGB - although all colours have the same value, either 0 or 255 - and shows up as an RGB image in Photoshop.
Any ideas on how I can change it to binary, ie a 1bpp format?
Code:
------
Bitmap bMap=new Bitmap (iMage);
BitmapData bData = bMap.LockBits(new Rectangle(0, 0, bMap.Width, bMap.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
System.IntPtr Scan0 = bData.Scan0;
int iStride=bData.Stride;
int iht=bMap.Height;
int iwd=bMap.Width;
int iPix=new int[iht][];
unsafe
{
byte *p = (byte*)(void*)Scan0;
int nOffset = iStride-iwd*3;
for(int y=0;y<iht;++y)
{
iPix[y]=new int[iwd];
for(int x=0;x<iwd;++x)
{
if (conditionA) p[0]=p[1]=p[2]=0;
else p[0]=p[1]=p[2]=255;
p += 3;
}
p += nOffset;
}
}
bMap.UnlockBits(bData);
bMap.Save(fileName);
|
|
|
|
|
You need to convert it to a different format. It won't magically detect how many colours you've used and therefore change itself. There is a Clone method that takes a bit depth, but I think it's buggy. You can create a new image of the required bit depth and copy your old image onto the new. Or you could create a new image to start with of the right bit depth, and set it's values instead of setting values on your existing image.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
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);
|
|
|
|
|
What is ConditionA ? This looks to me like it could be a lot slower than your old code ?
Either way, it's what I said to do - create a 1 bpp image to write to.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a 2-dimensional integer array of the same width and height of the image, each of whose elements is either 1 or 0. Condition A just checks whether the corresponding element in the array is a 1 or a 0, and sets the pixel accordingly
There doesn't seem to be a major drop in the time taken by the overall routine though. Do you have any suggestions?
Sarabjit.
|
|
|
|
|
If it's just an array lookup, then it probably is fine, I thought it may be missing () and be a function call that did goodness knows what.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yea, it is just an array lookup...
|
|
|
|
|
Hi
I am working on a project where I have a class containing a field of type object. I need to get a deep copy of the class, but cannot see an obvious way to copy the value of the field whos type is declared as object. I have considered using reflection to try and achieve this, but was wondering if anyone knew of a simpler way.
Any suggestions would be greatly appreciated.
Regards
Sam
|
|
|
|
|
Just serialize and deserialize it out of a MemoryStream. The framework takes care of the rest. Something like
using (MemoryStream s = new MemoryStream())
{
BinaryFormatter f = new BinaryFormatter();
f.Serialize(s, obj);
s.Seek(0, SeekOrigin.Begin);
object o = new BinaryFormatter().Deserialize(s);
Console.WriteLine(Object.ReferenceEquals(o, obj));
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|