AddBorderTop(Int32,Int32,Int32) Method
 
            
                In This Topic
            
            
            Adds border to the top of a GdPicture image.
            
            
            
            Syntax
            
            
            
            
            'Declaration
 
Public Overloads Function AddBorderTop( _
   ByVal  As Integer, _
   ByVal  As Integer, _
   ByVal  As Integer _
) As GdPictureStatus
             
        
            
            public GdPictureStatus AddBorderTop( 
   int ,
   int ,
   int 
)
             
        
            
            public function AddBorderTop( 
    : Integer;
    : Integer;
    : Integer
): GdPictureStatus; 
             
        
            
            public function AddBorderTop( 
    : int,
    : int,
    : int
) : GdPictureStatus;
             
        
            
            public: GdPictureStatus AddBorderTop( 
   int ,
   int ,
   int 
) 
             
        
            
            public:
GdPictureStatus AddBorderTop( 
   int ,
   int ,
   int 
) 
             
        
             
        
            Parameters
- ImageID
 
- GdPicture image identifier.
 - BorderHeight
 
- The height of the border in pixel.
 - BorderColor
 
- Color of the border. A suitable color value can be obtained by using the ARGBI() method.
 
            
            Return Value
            A member of the GdPictureStatus enumeration.
            
 
            
            
            
            
            
            Example
Adding the border to the top of a GdPicture image.
            
            
             
    
	
		using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // LoadInMemory parameter is set to true in order to be able to update the input file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.png", true);
 
    // Add a 10 pixels blue border to the top of the image.
    int borderHeight = 10;
    int borderColor = gdpictureImaging.ARGBI(255, 0, 0, 255);
    gdpictureImaging.AddBorderTop(imageID, borderHeight, borderColor);
    gdpictureImaging.SaveAsPNG(imageID, "image.png");
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
	 
	
 
 
            
            Example
Adding the border to the top of a GdPicture image.
            
            using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
            {
                // LoadInMemory parameter is set to true in order to be able to update the input file.
                int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.png", true);
             
                // Add a 10 pixels blue border to the top of the image.
                int borderHeight = 10;
                int borderColor = gdpictureImaging.ARGBI(255, 0, 0, 255);
                gdpictureImaging.AddBorderTop(imageID, borderHeight, borderColor);
                gdpictureImaging.SaveAsPNG(imageID, "image.png");
                gdpictureImaging.ReleaseGdPictureImage(imageID);
            }
            
            
            
            See Also