Matlab always encounter some magical problems, let people feel the mind. Yesterday when writing a program encountered a let me very fire big problem, but also their own MATLAB Foundation is not good bar.First describe the problem, then the GUI
' Get picture width and height of class, support Jpg,gif,png,bmp 'Class Imgwhinfo Dim ASOPrivate Sub Class_InitializeSet aso=server.createobject ("ADODB. Stream ")ASO. Mode=3ASO. Type=1ASO. OpenEnd SubPrivate Sub Class_TerminateErr.ClearSet
Converts lowercase numbers to uppercase.
Method 1: Use the functions provided by the system, but do not meet the financial requirements of mainland China.
Method 2: Use the following functions.
English:
Static STR num2engstr (real realnum,
ASP to add watermark to the image is the need for components ... Commonly used with AspJpeg software and the Chinese developed their own wsimage software, you can search the Internet to download these two software, recommended the use of our own
Program | source code | source Code Class Imgwhinfo ' Get a picture of the width and height of classes, support Jpg,gif,png,bmp
Dim ASO
Private Sub Class_Initialize
Set aso=server.createobject ("ADODB. Stream ")
ASO. Mode=3
ASO. Type=1
ASO. Open
End
Ado|stream Upload a picture or display SWF when you want to get its height and width
The basic principle is to use ADODB.stream to read binary files and then parse them, and then return an array
The first element is type (BMP JPG PNG GIF SWF)
The
Server #######################################
This article belongs to [rain Wave] All rights reserved, reprint must declare
#######################################
Recently do the website picture plate, because the virtual host does not support the
Class (no components) for obtaining picture width and height in ASP
Class Imgwhinfo ' Get a picture of the width and height of classes, support Jpg,gif,png,bmp
Dim ASO
Private Sub Class_Initialize
Set aso=server.createobject ("ADODB. Stream ")
ASO.
Let's look at the basic section first. First, we know that displaying the picture in the page is the following code:
"
SRC is the picture path, border control the edge of the picture, width is the length of the picture, height is the picture. The
It was written by a friend of the web forum.
Imgpath= "Default_22.gif"
Set Pp=new Imginfo
W = PP.IMGW (Server.MapPath (Imgpath))
h = pp.imgh (Server.MapPath (Imgpath))
Set pp=nothing
Response.Write " width: &w&"; High: "&h
Class Imginfo
Dim aso
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.