_Мика_ писал(а):ЗЫ savetojpg.dll просьба не предлагать
Private Sub Command1_Click()
Form1.Print StrConv(CreateBitmapFromPicture(Picture1.Picture).SaveToJpegToMemoryVar(80), vbUnicode)
End Sub
CreateObject(App.Path & "\GDI+.dll").CreateBitmapFromPicture(Picture1.Picture).SaveToJpeg "C:\1.jpg", 100
Dim objGDI As Object
Set objGDI = CreateObject("Проект.Класс")
objGDI.CreateBitmapFromPicture(Picture1.Picture).SaveToJpeg "C:\1.jpg", 100
Private Declare Function DllRegisterServer Lib "Имя дллшки" () As Long
Private Declare Function DllUnregisterServer Lib "Имядллшкиl" () As Long
Const ERROR_SUCCESS = &H0
Private Sub GraphLoad()
On Error Resume Next
Dim Data() As Byte
Dim objA As Object
Err.Clear
Set objA = CreateObject("prjGDIplus.Global")
If Err <> 0 Then MsgBox "GDI Plus Lib Not Installed!" : Exit Sub
objA.CreateBitmapFromPicture(Picture1.Picture).SaveToJpegToMemory Data(), 100
Form1.Print StrConv(Data, vbUnicode)
'не забываем произвести деинициализацию
Set objA = Nothing
End Sub
Сейчас этот форум просматривают: Google-бот, Yandex-бот и гости: 147