I'm Using Cosmos in C# to Create My OS but Some Classes When i'm Runing The Code Give My This Error
Argument 3: cannot convert from 'System.Drawing.Color' to 'Cosmos.System.Graphics.Pen'
and This is Some Details From The Code
if (CD == "Computer")
{
Kernel.canvas.DrawImageAlpha(Resources.disk, StartX + 10, StartY + y - 10);
Graphic.TextView(disks, StartX + 10, StartY + 45, Kernel.WhitePen);
if (selectionY != 0)
{
Kernel.canvas.DrawString("Format", Kernel.font, Kernel.WhitePen, StartX + 10, StartY + 1);
if (MouseManager.Y < StartY + 20 && MouseManager.Y > StartY && MouseManager.X > StartX + 5 && MouseManager.X < StartX + 50)
{
Kernel.canvas.DrawString("Format", Kernel.font, Kernel.GrayPen, StartX + 10, StartY + 1);
if (Kernel.Pressed)
{
F.Format(clickedOn - 1);
}
}
}
}
I tried to Install Some NuGet Packages Such as XSharp , .Net.System.Drawing , Cosmos Core
And tried To Convert Some Code Types But The Problem Is Repeat Again and I tried To Create New kernel And Import The Classes And Resources in This Kernel