Advertisement
5_2007-2008 Complete Applications #173299

Puzzle

It is an implementation of 8-Puzzle game in which you have board with 9 tiles 1 of which is empty and other 8 numbered from 1 to 8. Initially tiles are in order but after messing the state up program will solve the puzzle using one of two algorithms: regular BFS (breadth first search) or algorithm that uses so called Manhatten metric. The second solution is much fatser since the algorithm is much mo efficient. You will be able to see in real time current depth of search and also number of so far evaluated states. Good for people studying GUI's and simple data structures (like linked lists etc.) in VB.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
Upload
		<strong><font face="verdana" size="4">Image Format </font></strong>
		<font face="verdana" size="4"><STRONG>(Graphics; VB.NET)</STRONG></font>
		<font face="verdana" size="2">
			<p>I always wanted that the functionality to convert an image from 
  one format to another should be available in the programming 
  language itself. This dream has come true with .NET. There are many 
  applications (dealing with images) in which we might want to save an 
  image of any format in some other format (example: bmp to jpg 
  is very common as it decreases the file size considerably without 
  significant loss of quality). This can be done very easily in .NET.</p>
			<p>We can accomplish this using the
		</FONT>
		<font face="Courier New" size="2">
			Save</FONT><font face="verdana" size="2">
			method of
		</FONT>
		<font face="Courier New" size="2">
			Bitmap</FONT><font face="verdana" size="2">
			object.</p>
 <p>The following code reads a <b>bmp</b> image file into a bitmap object 
 and then saves it back in <b>jpg</b> format. </p>
		</FONT>
		<font face="Courier New" size="2">
			<p><font color="#0000FF">Dim</font> btmp <font color="#0000FF">As 
  New</font> Bitmap("C:\myimage.bmp")</p>
 <p>btmp.Save("C:\myimage.jpg",System.Drawing.Imaging.ImageFormat.Jpeg)</p>
		</FONT>
		<font face="verdana" size="2">
			<p>The first line loads the bitmap from the file myimage.bmp located 
  in C:\ into a bitmap object - btmp.</p>
 <p>The second line saves the loaded bitmap in Jpeg 
 format with myimage.jpg as filename.</p>
 <p>Other formats specified in ImageFormat class include bmp, gif, jpeg, tiff, png, etc.</p>
			<FONT face="Courier New">
			<P><FONT face="Verdana">Feedback and comments are most welcome</FONT>
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine