爱在华师大

 找回密码
 注册账号
查看: 2584|回复: 11

求助计算机同学

[复制链接]
发表于 2009-4-22 22:02:10 | 显示全部楼层 |阅读模式
谁会vb.net?尤其是bitmap这个函数呢~请吃饭啊~
发表于 2009-4-22 22:09:49 | 显示全部楼层
可不可以先请吃饭再谈公事
 楼主| 发表于 2009-4-22 22:52:49 | 显示全部楼层
2# 雪域刀


当然也可以~吃饭时请出示相关证件(原件、非复印件)
发表于 2009-4-22 23:15:57 | 显示全部楼层
我想问一问在哪能有寝室租床位的同学?我考研`~想租下床位`~女生宿舍的`
发表于 2009-4-22 23:17:53 | 显示全部楼层
[发帖际遇]: 雪域刀在馒头店卖馒头赚到金钱4.

2# 雪域刀


当然也可以~吃饭时请出示相关证件(原件、非复印件)
丫头fighting 发表于 2009-4-22 22:52


额。。 这个么问题啊
啥时候请吃饭
 楼主| 发表于 2009-4-23 00:09:25 | 显示全部楼层
[发帖际遇]: 雪域刀在馒头店卖馒头赚到金钱4.




额。。 这个么问题啊
啥时候请吃饭
雪域刀 发表于 2009-4-22 23:17



随时啊~华闵秋实随便挑~哈哈~
发表于 2009-4-23 00:14:52 | 显示全部楼层
偶滴神呀,我看这个贴都能遇到你求租……无语
 楼主| 发表于 2009-4-23 23:02:48 | 显示全部楼层
怎么没人会的呀
发表于 2009-8-1 02:57:35 | 显示全部楼层
bitmap在WINDOWS编程中曾经用到过,用C#或者C++的。。。vb.net没碰到过
发表于 2009-8-1 02:59:39 | 显示全部楼层
The following code example demonstrates how to construct a new Bitmap from a file, using the GetPixel and SetPixel methods to recolor the image. It also uses the PixelFormat, Width, and Height properties.

This example is designed to be used with a Windows Forms that contains a Label, PictureBox, and Button named Label1, PictureBox1, and Button1, respectively. Paste the code into the form and associate the Button1_Click method with the button's Click event.

Visual Basic Copy Code
Dim image1 As Bitmap

Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click

    Try
        ' Retrieve the image.
        image1 = New Bitmap( _
            "C:\Documents and Settings\All Users\Documents\My Music\music.bmp", _
            True)

        Dim x, y As Integer

        ' Loop through the images pixels to reset color.
        For x = 0 To image1.Width - 1
            For y = 0 To image1.Height - 1
                Dim pixelColor As Color = image1.GetPixel(x, y)
                Dim newColor As Color = _
                    Color.FromArgb(pixelColor.R, 0, 0)
                image1.SetPixel(x, y, newColor)
            Next
        Next

        ' Set the PictureBox to display the image.
        PictureBox1.Image = image1

        ' Display the pixel format in Label1.
        Label1.Text = "Pixel format: " + image1.PixelFormat.ToString()

    Catch ex As ArgumentException
        MessageBox.Show("There was an error." _
            & "Check the path to the image file.")
    End Try
End Sub
发表于 2009-8-1 02:59:54 | 显示全部楼层
MSDN上查的。。。
发表于 2009-8-1 03:00:49 | 显示全部楼层
Constructors
   Name Description
Bitmap Overloaded. Initializes a new instance of the Bitmap class.  
Top
  Methods
   Name Description
Clone Overloaded. Creates a copy of the section of this Bitmap defined with a specified PixelFormat.  
CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Dispose Overloaded. Releases all resources used by this Image.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Image.)
FromHicon Creates a Bitmap from a Windows handle to an icon.  
FromResource Creates a Bitmap from the specified Windows resource.  
GetBounds Gets the bounds of the image in the specified unit. (Inherited from Image.)
GetEncoderParameterList Returns information about the parameters supported by the specified image encoder. (Inherited from Image.)
GetFrameCount Returns the number of frames of the specified dimension. (Inherited from Image.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetHbitmap Overloaded. Creates a GDI bitmap object from a GDI+  Bitmap.  
GetHicon Returns the handle to an icon.  
GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
GetPixel Gets the color of the specified pixel in this Bitmap.  
GetPropertyItem Gets the specified property item from this Image. (Inherited from Image.)
GetThumbnailImage Returns a thumbnail for this Image. (Inherited from Image.)
GetType Gets the Type of the current instance. (Inherited from Object.)
InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
LockBits Overloaded. Locks a Bitmap into system memory.  
MakeTransparent Overloaded. Makes the default transparent color transparent for this Bitmap.  
MemberwiseClone Overloaded.  
RemovePropertyItem Removes the specified property item from this Image. (Inherited from Image.)
RotateFlip This method rotates, flips, or rotates and flips the Image. (Inherited from Image.)
Save Overloaded. Saves this image to the specified stream in the specified format.
SaveAdd Overloaded. Adds the information in the specified Image to this Image. The specified EncoderParameters determine how the new information is incorporated into the existing image.
SelectActiveFrame Selects the frame specified by the dimension and index. (Inherited from Image.)
SetPixel Sets the color of the specified pixel in this Bitmap.  
SetPropertyItem Stores a property item (piece of metadata) in this Image. (Inherited from Image.)
SetResolution Sets the resolution for this Bitmap.  
ToString Returns a String that represents the current Object. (Inherited from Object.)
UnlockBits Unlocks this Bitmap from system memory.  
Top
  Properties
   Name Description
Flags Gets attribute flags for the pixel data of this Image. (Inherited from Image.)
FrameDimensionsList Gets an array of GUIDs that represent the dimensions of frames within this Image. (Inherited from Image.)
Height Gets the height, in pixels, of this Image. (Inherited from Image.)
HorizontalResolution Gets the horizontal resolution, in pixels per inch, of this Image. (Inherited from Image.)
Palette Gets or sets the color palette used for this Image. (Inherited from Image.)
PhysicalDimension Gets the width and height of this image. (Inherited from Image.)
PixelFormat Gets the pixel format for this Image. (Inherited from Image.)
PropertyIdList Gets IDs of the property items stored in this Image. (Inherited from Image.)
PropertyItems Gets all the property items (pieces of metadata) stored in this Image. (Inherited from Image.)
RawFormat Gets the file format of this Image. (Inherited from Image.)
Size Gets the width and height, in pixels, of this image. (Inherited from Image.)
Tag Gets or sets an object that provides additional data about the image. (Inherited from Image.)
VerticalResolution Gets the vertical resolution, in pixels per inch, of this Image. (Inherited from Image.)
Width Gets the width, in pixels, of this Image. (Inherited from Image.)
您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

小黑屋|爱在华师大 ( 曾经也有备案 )

GMT+8, 2024-11-15 10:09

广告与合作请【联系我们】

© 2007-2024 iecnu.com

快速回复 返回顶部 返回列表