|
Hi all, we have a web based tool which is able to store images we create here. Now the problem is that most images are made in CMYK model. When you want to show such a jpeg, IE and FF just fails to do that. When you open the cmyk image with any other program (mspaint, photoshop, ...) you see the image is there. If you convert this image (i used photoshop) to RGB model it shows fine.
For example here is a cmyk image[^] and here is the rgb image[^] created after photoshop conversion.
So now is the question: how can i convert a CMYK jpeg to a RGB jpeg to show it on my website? Is there a way in GDI+ to convert CMYK JPG images to RGB JPGs?
Please help me out on this one please!
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
I dont think there is any problem in cross posting as one visiting on one forum does not visit on other and the person is looking for solution not for populating the codeproject database with redundant data
Rizwan Bashir
|
|
|
|
|
Rizwan Bashir wrote: I dont think there is any problem in cross posting
Wrong! Read the usage guidlines of almost every single technical forum and they will all say dont crosspost.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
there is one free control imageEdit . search on google and download that. in dot net this type is not supported and you can convert this image through that control programatically and use it . the code for convertion is very very simple. so you can explore it .
Regards
Rizwan Bashir
|
|
|
|
|
Thanks for answering! I'll give it a try
|
|
|
|
|
I have the following question: What do I need to know to create an own TextBox like control with special features. After researching TextBox control I think that a customized version of it won't do what I need.
It shouldn't be very sophisticated but I don't really know where to start and if I can do it in a feasable time. How difficult might be implement such a control?
Do you know about any such samples or tutorials?
Thank you in advance.
|
|
|
|
|
What are "special features" ?? colors ... bold ...
|
|
|
|
|
I need to place a combobox next to each line. Different background color for each line, line numbers, well fonts, font colors etc. won't be bad but are extra features not really needed for now.
I'll compare it to the code editor in Dreamweaver 8, something similar with a few more features but it is not a "code" editor so I don't need synatax highlighting for example.
|
|
|
|
|
You have to create a custom control. Derive your conrol from the standard System.Windows.Forms.Textbox and Override the methods you want.
To start with
try gooling "windows custom controls textbox"
syncfusion
|
|
|
|
|
Well, thank you! I know that already. What I don't really have any idea about is if font drawing, text handling etc. is difficult and if writting such a control will consume huge amount of time.
I want to have an idea approximately how much time such a project would need: a week, a month, an year?
-- modified at 7:13 Tuesday 16th May, 2006
|
|
|
|
|
Cristoff wrote: I want to have an idea approximately how much time such a project would need: a week, a month, an year?
This is like asking "How long is a piece of string?". Basically its going to depend on so many factors such as how proficient you are with coding. How well you know the control classes, and derived controls. How many extra features do you want.
As a hint, it will take even an experienced programmer upward of a day to develop a reasonably complex control. 5 developers could work for a few months on a really really complex control.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Yeah, I know my question is stupid but probably someone has done something similar and knows how much time he has needed to accomplish it.
|
|
|
|
|
No, no. Your question is not stupid at all! However, asking how much time it will take depends entirely on you.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
I have migrated a project from VS.NET 2003 to CS.NET 2005 that uses a lot of UI and I use a main form that updates and changes after a selection is made in the main menu.
The problem is that only on one of the screens I use the menu reverts to the left side of the screen even though it is defined as RightToLeft = RightToLeft.Yes .
I have tried to put that defenition everywhere I can and nothing worked.
The only way I was able to move the menu back to the right side of the screen was by adding another empty and disabled menu item:
MenuItem m = new MenuItem();
m.Enable = false;
this.MainMenu.MenuItems.Add(m);
The problem is that it deals with the symptom and not the problem.
Does anyone knows why it happens?
Thanks,
|
|
|
|
|
hello all.
pls help as i am getting error when i try to run a web application the studio through error "can not start debugging on web server,the underlying connection was broken"..why the error pls help.I am running the application on IIS 5.0
|
|
|
|
|
open ur iis manager and check ur system name is there or not if not reinstall iis and then open visual studio command prompt
on that run aspnet_regiis -i
VMSSanthosh
|
|
|
|
|
I've got a Singleton instance of my class(A) that contains the functions for filling (passed on)datasets using 1 of 2 resident data adapters: the default adapater(A1) (for executing queries that will not be updated back to the database), and one for specially created and monitored for the query(A2) (that can be used to update data back to database). This all operates using delegates and call backs to the calling class'(B-Z) method. The database is hosted on the internet so, i need the delegation so the ui threads are not waiting for the data to return from the server.
What i'm not sure about is how the lock() will affect my program flow and what will happen when i lock the singleton instance A. At this stage i'm only locking the A1 adapter instance. I want to lock the whole instance of A so that other data requests don't interfere with the current data request.
Will it lock(A) the lock the instance in use by other classes in other threads or should i rather use a single line queue for data filling/updateing?
I would appreciate if some can enlighen me.
|
|
|
|
|
If you use lock(A), the A object will only be accessible for the thread that locked it. Any other thread that wants to access the object will wait until it gets unlocked.
There are different cursor types that decides what happens to a database result when data in tables changes. If you use a static cursor (adOpenStatic), the result is a static copy from the table, and won't be affected by changes in the table. If you can make the adapter use a static cursor, you don't have to use locking to protect the data in the result.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: make the adapter use a static cursor, you don't have to use locking to protect the data in the result.
the reason is not for data protection - its to minimize adapter creation and optimize adapter use during runtime.
Guffa wrote: Any other thread that wants to access the object will wait until it gets unlocked.
does this happen 'automaticlly' or should it controlled by the .NET Monitor class?
|
|
|
|
|
A correction to my previous statement:
The lock statement doesn't lock the object per se, it only prevents the code in the lock statement (or any other lock statement using the same object) to be entered by another thread.
The object is only used as an identifier, so it doesn't matter what object you use if you only have one lock statement.
The lock statement calls System.Threading.Enter, which uses the Monitor class. A lock statement is the convenient form of:
try {
System.Threading.Ender(theObject);
... lotsa code
} finally {
System.Threading.Exit(theObject);
}
---
b { font-weight: normal; }
|
|
|
|
|
|
What is your question?
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Yes
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Hi all
I am in urgent need of help from you people.
In my web page the user has to insert date several times.so i thought of creating user control.I did that and it worked nicely. but the problem in that is the calendar is opening in the page.So i want to create a window for displaying the calendar and returning the date in the textbox with only c# code i.e. No javascript.
Kindly send the solution as early as possible. I want to repeat once more that i don't want javascript code to create the window only C# code is needed.
Thanks in advance
nauty
|
|
|
|