C产品在市场上有哪些独特优势?

2026-04-29 06:433阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计685个文字,预计阅读时间需要3分钟。

C产品在市场上有哪些独特优势?

1,http://converter.telerik.com 网站非常不错,转换成C语言代码

1,converter.telerik.com

网站很不错 转成c#源码不错

‘‘‘ <summary>
‘‘‘ 提取像素法 简单的方法 上面的是好的 不过分析图片时用很好用
‘‘‘ </summary>
‘‘‘ <param name="srcBitmap"></param>
‘‘‘ <returns></returns>
Public Shared Function RGB2Gray1(ByVal srcBitmap As Bitmap) As Bitmap
Dim srcColor As Color
Dim wide As Integer = srcBitmap.Width
Dim height As Integer = srcBitmap.Height

For y As Integer = 0 To height - 1

For x As Integer = 0 To wide - 1
‘获取像素的RGB颜色值

srcColor = srcBitmap.GetPixel(x, y)
Dim temp As Byte = CByte((srcColor.R * 0.299 + srcColor.G * 0.587 + srcColor.B * 0.114))

‘ //设置像素的RGB颜色值
srcBitmap.SetPixel(x, y, Color.FromArgb(temp, temp, temp))
Next
Next

Return srcBitmap
End Function

转换后

/// <summary>

/// ‘‘‘ 提取像素法 简单的方法 上面的是好的 不过分析图片时用很好用

/// ‘‘‘ </summary>

/// ‘‘‘ <param name="srcBitmap"></param>

/// ‘‘‘ <returns></returns>
public static Bitmap RGB2Gray1(Bitmap srcBitmap)
{
Color srcColor;
int wide = srcBitmap.Width;
int height = srcBitmap.Height;

for (int y = 0; y <= height - 1; y++)
{
for (int x = 0; x <= wide - 1; x++)
{
// 获取像素的RGB颜色值

srcColor = srcBitmap.GetPixel(x, y);
byte temp = System.Convert.ToByte((srcColor.R * 0.299 + srcColor.G * 0.587 + srcColor.B * 0.114));

// //设置像素的RGB颜色值
srcBitmap.SetPixel(x, y, Color.FromArgb(temp, temp, temp));
}
}

return srcBitmap;
}

2,www.carlosag.net/Tools/CodeTranslator/

这个是强制转换 代码

‘‘‘ <summary>
‘‘‘ 提取像素法 简单的方法 上面的是好的 不过分析图片时用很好用
‘‘‘ </summary>
‘‘‘ <param name="srcBitmap"></param>
‘‘‘ <returns></returns>
Public Shared Function RGB2Gray1(ByVal srcBitmap As Bitmap) As Bitmap
Dim srcColor As Color
Dim wide As Integer = srcBitmap.Width
Dim height As Integer = srcBitmap.Height

For y As Integer = 0 To height - 1

For x As Integer = 0 To wide - 1
‘获取像素的RGB颜色值

C产品在市场上有哪些独特优势?

srcColor = srcBitmap.GetPixel(x, y)
Dim temp As Byte = CByte((srcColor.R * 0.299 + srcColor.G * 0.587 + srcColor.B * 0.114))

‘ //设置像素的RGB颜色值
srcBitmap.SetPixel(x, y, Color.FromArgb(temp, temp, temp))
Next
Next

Return srcBitmap
End Function

转换后不支持 中文

Unknown(

staticBitmapRGB2Gray1(BitmapsrcBitmap){
ColorsrcColor;
intwide=srcBitmap.Width;
intheight=srcBitmap.Height;
for(inty=0;(y
<=(height-1));y++){
for(intx=0;(x
<=(wide-1));x++){
//????2‘"?r<
srcColor=srcBitmap.GetPixel(x,y);
bytetemp=byte.Parse(((srcColor.R*0.299)
+((srcColor.G*0.587)
+(srcColor.B*0.114))));
srcBitmap.SetPixel(x,y,Color.FromArgb(temp,temp,temp));
}

}

returnsrcBitmap;
}

本文共计685个文字,预计阅读时间需要3分钟。

C产品在市场上有哪些独特优势?

1,http://converter.telerik.com 网站非常不错,转换成C语言代码

1,converter.telerik.com

网站很不错 转成c#源码不错

‘‘‘ <summary>
‘‘‘ 提取像素法 简单的方法 上面的是好的 不过分析图片时用很好用
‘‘‘ </summary>
‘‘‘ <param name="srcBitmap"></param>
‘‘‘ <returns></returns>
Public Shared Function RGB2Gray1(ByVal srcBitmap As Bitmap) As Bitmap
Dim srcColor As Color
Dim wide As Integer = srcBitmap.Width
Dim height As Integer = srcBitmap.Height

For y As Integer = 0 To height - 1

For x As Integer = 0 To wide - 1
‘获取像素的RGB颜色值

srcColor = srcBitmap.GetPixel(x, y)
Dim temp As Byte = CByte((srcColor.R * 0.299 + srcColor.G * 0.587 + srcColor.B * 0.114))

‘ //设置像素的RGB颜色值
srcBitmap.SetPixel(x, y, Color.FromArgb(temp, temp, temp))
Next
Next

Return srcBitmap
End Function

转换后

/// <summary>

/// ‘‘‘ 提取像素法 简单的方法 上面的是好的 不过分析图片时用很好用

/// ‘‘‘ </summary>

/// ‘‘‘ <param name="srcBitmap"></param>

/// ‘‘‘ <returns></returns>
public static Bitmap RGB2Gray1(Bitmap srcBitmap)
{
Color srcColor;
int wide = srcBitmap.Width;
int height = srcBitmap.Height;

for (int y = 0; y <= height - 1; y++)
{
for (int x = 0; x <= wide - 1; x++)
{
// 获取像素的RGB颜色值

srcColor = srcBitmap.GetPixel(x, y);
byte temp = System.Convert.ToByte((srcColor.R * 0.299 + srcColor.G * 0.587 + srcColor.B * 0.114));

// //设置像素的RGB颜色值
srcBitmap.SetPixel(x, y, Color.FromArgb(temp, temp, temp));
}
}

return srcBitmap;
}

2,www.carlosag.net/Tools/CodeTranslator/

这个是强制转换 代码

‘‘‘ <summary>
‘‘‘ 提取像素法 简单的方法 上面的是好的 不过分析图片时用很好用
‘‘‘ </summary>
‘‘‘ <param name="srcBitmap"></param>
‘‘‘ <returns></returns>
Public Shared Function RGB2Gray1(ByVal srcBitmap As Bitmap) As Bitmap
Dim srcColor As Color
Dim wide As Integer = srcBitmap.Width
Dim height As Integer = srcBitmap.Height

For y As Integer = 0 To height - 1

For x As Integer = 0 To wide - 1
‘获取像素的RGB颜色值

C产品在市场上有哪些独特优势?

srcColor = srcBitmap.GetPixel(x, y)
Dim temp As Byte = CByte((srcColor.R * 0.299 + srcColor.G * 0.587 + srcColor.B * 0.114))

‘ //设置像素的RGB颜色值
srcBitmap.SetPixel(x, y, Color.FromArgb(temp, temp, temp))
Next
Next

Return srcBitmap
End Function

转换后不支持 中文

Unknown(

staticBitmapRGB2Gray1(BitmapsrcBitmap){
ColorsrcColor;
intwide=srcBitmap.Width;
intheight=srcBitmap.Height;
for(inty=0;(y
<=(height-1));y++){
for(intx=0;(x
<=(wide-1));x++){
//????2‘"?r<
srcColor=srcBitmap.GetPixel(x,y);
bytetemp=byte.Parse(((srcColor.R*0.299)
+((srcColor.G*0.587)
+(srcColor.B*0.114))));
srcBitmap.SetPixel(x,y,Color.FromArgb(temp,temp,temp));
}

}

returnsrcBitmap;
}