|
Thanks for your reply.
So what is the option to build one CCW setup that should actually expose all DLLs?
|
|
|
|
|
Why do you have to have one?
AFAIK, there isn't an option.
|
|
|
|
|
OK, i think if i explain my situation you can suggest me.
I've an application (.Net C#) and i want to give an interface to COM based users, for this i need to ship all APIs (like say i've 10 DLLs). I just dont want to build 10 different TLB file and register them separately at client machines.
Want to build one wrapper class that will expose all other DLLs, this is what i want to achieve. How can i get it done?
Thanks in advance.
|
|
|
|
|
satsumatable wrote: Want to build one wrapper class that will expose all other DLLs
You just said it, right there. Build a COM-based wrapper class. All those .DLL's are still going to have to be registered though...
|
|
|
|
|
how to arrange images on canvas to form collage with each image different angle and important part of image should be visible and no blank space
|
|
|
|
|
Use Paint Shop Pro, make the collage as a bitmap and set this as the background of the form?
I are troll
|
|
|
|
|
how to select salient part of image ,salient means important part for which we taken out photograph, no matter what is background ,floor,sky...
|
|
|
|
|
There are no standard-functions to do this in .NET that I'm aware of, I'm afraid you'll have to roll your own.
You're baking a photographers-paintprogram?
I are troll
|
|
|
|
|
actualy we r making image collage project which will show salient part of images and so is there any way by using intensity,saturation,hue of pixels we able extract that part
|
|
|
|
|
This class can serve as an example on manipulating colors. Or, you can take a look at MSDN, and take a look at the GetSaturation method of the Color-class.
You got a though project on your hands there.. If I understand you correctly, you'll have to iterate through all the pixels, and judge them based on hue/intensity/color/something?
I are troll
|
|
|
|
|
Yes,now we r just considering pixels intensity factor,but problem with that is time required for two for loop quit large for getpixel(),setpixel() fun so is there other method so that we can increase speed of execution?
|
|
|
|
|
Have you considered Parallel.For? Personally I prefer the AForge version, as it only requires .NET 2.0. It's quite an improvement in execution-time if you got a dual-core (or better) processor
Just noticed that the author is also doing a lot of image-manipulation.
I are troll
|
|
|
|
|
Thanks, we will implement it
|
|
|
|
|
i implemented parallel for loop but in below code it is throwing exception 'invalid operation for gepixel and setpixel' is it possible to use gepixel() in this context please help!!
AForge.Parallel.For(py1, py2, delegate(int z)
{
for (x = px1; x < px2; x++)
{
Color pixelColor = image2.GetPixel(x, z);
img1.SetPixel(x, z, pixelColor);
}
});
|
|
|
|
|
The AForge-framework provides an abstraction with it's Parallel.For, from threads. The framework actually generates some threads on the background, to execute the For-loop. Hence, the same rules apply to threading; you're not allowed to access variables from other threads.
See the BackgroundWorker class for more details on these limitations.
I are troll
|
|
|
|
|
Hi
I am using VS2008 C# with datagridview and filling the cells using a byte[].
Is there a away the cells will display the value in HEX ?
Thanks
Have a nice Day
|
|
|
|
|
Register for the CellFormatting[^] event and do the conversion for display there
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
thanks a lot .
Maybe i am missing somthing is therea way of not converting to string and display the value as Hex
Thanks
Have a nice Day
|
|
|
|
|
A simple method like this should do it:
public string ToHexstring(byte[] byteArray)
{
if (byteArray.Length > 0)
{
StringBuilder resultBuilder = new StringBuilder();
foreach (byte value in byteArray)
resultBuilder.Append(value.ToString("X2"));
return resultBuilder.ToString();
}
else
return "00";
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
The mear fact that a number is being displayed in the DGV makes the item you see in the DGV cell a string, no matter what the actual data type is. So, no there's no way of displayed any data in a DGV without converting it to a string, or some other custom rendered display.
|
|
|
|
|
how to cut,copy,paste a picturebox control in c#.net at runtime, can u please provide code for this.
|
|
|
|
|
Don't repeat the same question over and over.
http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=2868845
I are troll
|
|
|
|
|
Now, as to answer the darned question;
A PictureBox is a place-holder for a picture, in the same way that a label is a placeholder for text. Both don't have the cut/copy/paste functions, because they aren't editable.
A Textbox is the placeholder for text that can be edited. There is no placeholder for editable pictures.
In other words, what is supposed to happen when you "cut" something from the PictureBox? Should it remove the entire picture, or just a selection thereof? The first "cut"-mechanism is easy to implement, as you just need to assign "null" to the image of the picturebox. The second "cut"-mechanism is harder to code.
What about "paste"? Do you want to insert a new picture in the picturebox, or do you want to combine the picture with what you are pasting?
I are troll
|
|
|
|
|
shabanab wrote: can u please provide code for this.
Sure, but first we need to talk about how much you'll pay.
only two letters away from being an asset
|
|
|
|
|
shabanab wrote: can u please provide code
Normally, you can not get the answer if the question looks like this.
I Love KongFu~
|
|
|
|