Hello, How to detect if the computer has Pixel Shader? (in VB.NET or C#)
Regards. Mehdi Ghiasi
Hello, How to detect if the computer has Pixel Shader? (in VB.NET or C#)
Regards. Mehdi Ghiasi
Hello! I am developing a program. sometimes, i need to view something in a WebBrowser (using WindowsFormsHost or Awesomium) I want to glass somewhere of my window (in webbrowser) in winForms, I can make it black and it will glass inside browser (i think), but in WPF, I can't set a color inside webbrowser in black. So, How do I glass something in WebBrowser (using WindowsFormsHost or Awesomium) in WPF?
Regards. Mehdi Ghiasi
Where can I learn about this?!
Regards. Mehdi Ghiasi
My server and sql server are different. (server of microsoft sql server is not localhost. it is sql.something.com) So, isn't there any performance problem?
Regards. Mehdi Ghiasi
Hello. I have opened a lot of cn.open()
and cn.close()
in my web application. for example when a page is loading, almost 10 connections are opened and closed. Whether it creates performance problems?
Regards. Mehdi Ghiasi
So, How Microsoft Photo viewer uses a little memory using full loading picture ? (it can zoom into picture with full quality) :confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused: also delphi can load images as jpeg! Thanks for your answer.
Regards. Mehdi Ghiasi
modified on Friday, September 3, 2010 9:29 PM
Hello, I want to load an JPEG image from file to a picturebox. I know that i can load using :
Picturebox1.image = image.fromfile("D:\MyImage.jpg")
and
dim b as new bitmap("D:\MyImage.jpg")
Picturebox1.image = b
but when I loading image using these ways, it loads bitmap format and uses more RAM space. (e.g a 3MB JPEG file uses 40MB RAM after loading) How Can I load the file with low RAM usage? UPDATE : Microsoft Paint also use 40MB RAM After open that file, but Microsoft Photo viewer use very low RAM usage. How can I load images with low RAM usage????? :confused::confused::confused::confused::confused::confused::confused::confused::confused::confused::confused:
Regards. Mehdi Ghiasi
Hi! I am using this BackTrack procedure that Fills a map.
Private Sub Fill(ByVal i As Integer, ByVal j As Integer)
If (i < 1) Or (j < 1) Or (i > FillM.Width) Or (j > FillM.Height) Then
Exit Sub
End If
If FillM.Pixel(i, j) = 1 Then
FillM.Pixel(i, j) = -1
Fill(i, j - 1)
Fill(i, j + 1)
Fill(i - 1, j - 1)
Fill(i - 1, j)
Fill(i - 1, j + 1)
Fill(i + 1, j)
Fill(i + 1, j - 1)
Fill(i + 1, j + 1)
End If
End Sub
When The Map has a few pixels that have value 1, It works correctly. but when the map has many pixels that has value 1, It cause an StackOverflowException. How Can I resolve this problem and why .Net Framework 3.5 throw this invalid Exception???? :confused:
Regards. Mehdi Ghiasi
So how can I scale a 100x100 image into 150x150 ?
Regards. Mehdi Ghiasi
No! I have a monochrome bitmap in an integer array table and I want to resize it into a new array WITHOUT GDI+ or any Class that Resizes the image For me. I want to know How It Works!
Regards. Mehdi Ghiasi
Dear Friends. I want to resize a monochrome bitmap (every pixel can only contains 0 or 1) to another size (like 32*32 to 30*50). I can do it with GDI+ but I want to do it WITHOUT USING ANY CLASS LIKE GDI+. (only loop , for , if , etc.) How can I do it?
Regards. Mehdi Ghiasi
This Function Can help you! :-D
Public Function ResizePicture(ByVal sourceImage As Bitmap, ByVal newSize As Size) As Bitmap
Dim Result\_image As New Bitmap(sourceImage, newSize.Width, newSize.Height)
Dim Gr As Graphics
Gr = Graphics.FromImage(Result\_image)
Gr.DrawImage(Result\_image, 0, 0, newSize.Width, newSize.Height)
Gr.Save()
Return Result\_image
End Function
Then you can save the output of this Function By using ResizePicture(MyBitmap, New Size(100, 100)).Save(MapPath("/") & "/Images/MyImage.png", Imaging.ImageFormat.Png)
Note: These codes are in VB.NET Language, but you can simply convert it to C# or any .NET language
Regards. Mehdi Ghiasi
Here is Norooz Holiday and I can't talk with customer support now !
Regards. Mehdi Ghiasi
Amar Chaudhary wrote:
Is your site precompiled/published
Yes. it is precompiled. but I was tested it with source code and I gave same results.
Regards. Mehdi Ghiasi
Thanks. But my server is not dedicated, and I have only a plesk control panel for manage my host settings. how can I do?
Regards. Mehdi Ghiasi
This Links is about .Net Framework 1.0 and .Net Framework 1.1 , but i'm using .Net Framework 2.0
Regards. Mehdi Ghiasi
Dear Friends! I made an ASP.Net Application and upload it into my web site (http://www.mahdighiasi.net[^]). Sometimes I can see my web site correctly, but sometimes, I see a compile error page:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code 128.
Show Detailed Compiler Output:
C:\WINDOWS\SysWOW64\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\assembly\dl3\16601818\c6da888d_3fcbca01\ICSharpCode.SharpZipLib.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\assembly\dl3\1237b663\3a2acc77_3fcbca01\FredCK.FCKeditorV2.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\assembly\dl3\5ec1c104\96bb7748_3fcbca01\App_global.asax.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
Thanks a lot!!!!!!!! ;)
Regards. Mehdi Ghiasi
So, How can I make a Color Picker Combo Box (Color Picker Drop Down list) for my WPF Application? (I can make it in my program with both XAML and code. but in a class, I haven't XAML, how can I Change ItemTemplate of ComboBox? I've made this control for windows forms with DrawItem
Event.)
Regards. Mehdi Ghiasi