Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Png Picture Format


I've looked at several articles describing the png picture format, and they went over my head. So does anyone have any code that can save and especialy load a .png picture format.

Thanks




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Picture Format....
What would be a good picture format that has at least a decent compression? And would be good to use in a game?

Picture Format
Hello!

I have a question. What kind of picture formats(.bmp.jpg.tiff.........) can i load to image and picturebox?

Thank's!

New Picture Format
I need a new picture format that only I and my program can use, Can I do this in VB or do I need to do it in C++ ?

Is there any one out there that can help me!?

//DoomBringer

Picture Resize And Format
hey all,
anyone know if it is possible to resize and format a picture e.g. wrap around text, after inserting it from clipart in VBA,
if so how?
cheers - Mark.

Save Picture In .gif Format?
Hello,

Is there a way of saving the picturebox.picture in .gif Format and load a .gif file into a picturebox.picture?

Help Me Regading Picture Format
hey guys can you help me with this...
I have been able to get a snap shot of the foremost window...

.. but the problem is i dont want ot save it has a .bmp file... i want to save it as a .gif...or a .jpg

any ideas???
please help me

how do i save a snapshot as a picture......but not as a .bmp???

Convert Picture Format ???
How can i convert picture format from BMP to JPG ???

Thanx

Shaykan

How To Make GIF Format From Picture?
help

How to make GIF format from picture?

buildersoft@angelfire.com

Chart Fill Format Picture
I am trying to add a picture to the background of my chart and I can get it to fill the whole page, i.e. stretch the picture, but what I really want is to just display the picture unscaled once at the top left of the chart.

For some reason the options are disabled through the normal Excel user interface so I thought I'd try and do it programatically, but I just get an error:


Code:
With ThisWorkbook.Charts(str_Chart1).ChartArea
.Fill.UserPicture _
PictureFile:= _
"Picture location and file name (.gif)", _
PictureFormat:=xlStackScale, _
PictureStackUnit:=1, _
PicturePlacement:=xlAllFaces
.Fill.Visible = True
End With

I'm not sure what the Stack Unit and Picture Placement parameters do as the help is slightly vauge.

Picture Export To Word In Rtf Format
Problem:
I got a jpeg picture saved and I export it to a word document (under rtf format )in a table using:
"{field{*fldinst { INCLUDEPICTURE " & pictname.jpg & " \* MERGEFORMAT \d }}}"
The picture is then linked to the document...
the thing is than the picture appears in the document but is too big...
Does anyone knows what i should write to reduce the size of the picture before exporting it ???
Thanks

How Can I Change Or Format A Picture On A Excel Sheet.
i wanna change or format a picture on a Excel Sheet.
How can i do it

How To Save The Picture Image In JPEG Format
Hi Everyone,

am developing a picture in the picture box while run time in Visual Basic.I need to save the picture in JPEG format,am not able to do it..It can be saved in BMP format,but not ion JPEG format..

Anyone knows ple let me know how to save the picture image in JPEG format or converting the BMP format to JPEG format

Thanks
Logeswari

How To Display PackedDIB Format Image To Picture Box
Hi,

How can we display the image which is in packedDIB format, in a picture box in VB6.

note: packedDIB contains a single pointer which points to a memory block containing a BITMAPINFO structure which is followed by the image data.

Basically I will get the image in packedDIB format(its a 6 or 8 digit number iam getting. i think, this is the memory address.). I need to dispay the image in picture box using this packedDIB.

Please Help!
Thanks in Advance,
IPS

How Can I Save A Picturebox.picture In Jpeg Format
How can a Image displayed in a PictureBox be saved in jpeg format in a file.

How Can I Save A Picturebox.picture In Jpeg Format
How can a Image displayed in a PictureBox be saved in jpeg format in a file.

Drawing Rectangles In Picture That Ist Stored In StdPicture Format
Hey guys!

I really don't like to ask you about some code, but I tried and tried and tried and I didn't get my code to work :-(

I'm working with VBA.
I receive a picture from an interface and this picture is stored in memory in the variable pic (defined as stdPicture).
Now i want to draw rectangles and circles into this picture and then display it. Unfortunately I don't have a PictureBox or Image Control. I have a special Control (ocx) to display the picture. So how can I draw the rectangles and circles into the image-data?

I tried to get it to work with createDC, SelectObject, MoveTo, LineTo,... but it didn't work, obviously because I don't know how to use these commands right. (ok, moveto and lineto are not the problem...)

You can believe me, I really tried several hours, but as time is nearly up I'm asking for your help...

Can anyone pleeeaaase give me some lines of code??

Thanks in advance

Daniel

Clipboard Picture -> Smaller Format && Number Of Bytes
First off, my problem doesn't deal with directx or winsock at all, so please dont move this

Long version: (scroll down to see the short version)

Hello. I wanted to make a small application where you can control another computer from far away.. So far I have a server and a client, and the server is on the computer I want to control, and the client is on the computer that is controlling it. I'm sending messages of what to do (move the mouse, etc.) to the server, which then executes them. One problem.. I can't see what I am doing! So, I figured I'd send images back to the client to show where everything is on the screen (based on the messages sent, I'll know where the mouse is)

So I have the server taking screenshots every second, but I have a bit of a problem.

I need to convert the image that I got from prtscrn, on the clipboard, and I need to convert that into something very small (I've been thinking jpg.) and then I need to get the size of that image (in bytes) so I can send it..

Please help me out.


Short version:

I have an image on the clipboard, I need to convert it into a small image type (jpg or something) and find the size of it in bytes. How can I do that please? Thanks.

~Adams555~


Oh, I forgot to mention. I'm using VB6. And I dont care that the quality of the picture will be worse if I use jpg.. I've gotta get it tiny or it will be horribly laggy.

Is There Any Specific Format For Respondin To A Explorers Request For A Picture?
i dont think so because for when it requested a javascript i just sent the data for it to them and it worked but that wasnt binary data it was text.

Creating A Picture Using Picturebox And The Save It In JPEG Format
How do I crate lines or boxes into a picture box and then sve it a an .jpg?

Tnx.

mØrPh

Insert Picture Doesn't ALSO Convert File Format
I am using Excel 2003, and I am wanting to insert pictures from files using a macro. My image files are HPGL files, for which I had to install a special filter (which used to be included with Word previous to 97, apparently), and they have a ".fp" extension. When I do this manually, I have to specify the particular filename, and then deal with a pop-up window called "Convert File" which makes me pick the HP format out of a list of file formats to convert from (some of which are WMF, JPEG, GIF, TIFF, you get it). Recording this into a macro gives me the same ActiveSheet.Pictures.Insert("filename.fp").Select as usual, which works in the macro as long as I have loaded the image manually already. If I haven't, running that line gives a "Run-time error '1004': Unable to get the Insert property of the Pictures class".

I believe this happens because of the special file format, and the Pictures class isn't automatically invoking the file convert thing (or at least the correct file convert thing). I can't find an object for the file conversion. If anyone knows how to do this, please help! Thanks.

Size Increases When Picture Saved As JPG Format Using IJL11.dll
Thanks a lot to all VB Group members...
I have developed a software generating JPG format picture by using the IJL11.dll. But the picture size(height&width)highly increased and generating only in 72DPI.
How can i generate a picture in its original width, height & 300dpi.

Display Tabs (how To Format The Display Of A Picture Box)
Hi all,

Just a quick question on how i would go about making a blank line between each of my lines of array, so that the array data is in line with the label.



The current code i use is:


vb Code:
For driver = 1 To 5For time = 1 To 6picSort.Print Tab(time * 10); sorted(driver, time);Next timeNext driver


My data is stored in an array named sorted, it is 2d of type variant.

-Comacchio

Capture Entire Picture Of Picture Box Though Picture Exceeds Screen Height
please give me details how to capture entire portion of picture in a picture box control though the picture height is greater than the screen height.

Load Picture At Run Tme In Picture Property Of StatusBar_Panel(1).Picture
I am trying to load an picture at run time at every Form's
StatusBarPanelPicture property but it seems that it doesn't show up .
Any ideas?
Thanks Panayiotis.
Public Sub main_logo_load()
    On Error GoTo Load_Other
    'Connections.Arr(1) array field holds the driveletter to which I have
the folder located .
     Set Forms.Controls("staMain").Panels.Item(1).Picture = _
        Connections.Arr(1) & ":CharterManagerImagesLogo-Small.gif"
     'Forms.Controls.staMain.Panels.Item(1).Picture = LoadResPicture(1, 1)
Load_Other:
    If Err.Number = 53 Then
       Set Forms.Controls("staMain").Panels.Item(1).Picture =
LoadResPicture(10, vbResBitmap)
    End If
End Sub

 

Format Currency To Indian Format In Label/Textbox
Hi folks,
I am trying format the currency data in DB (Acs 2003) into Indian currency format 00,00,00,000 for which I used the below code

vbcode Code:
Me.lblAmt.Caption = Format(CCur(rsCurrent.Fields("suitAmount")), "##,##,##,##,##,##0")

but during display nothing happens i.e. the display continues to be the US format.
Can somebody show me how.
Thanks in advance.

What Is Packed Data Format. How Can I Write To A File From VB In This Format.
Hi all,

Could someone explain what Packed data format is and how I can write to a file from VB in this format.

Code sample will be highly appreciated.

Thanks in Advance.

How To Translate English Vb Projects Format In Another Language Format
hi!
i develop a program in vb...and now it is finished...now my problem

is...

how can i translate my vb project in to another language



for
example i want my english vb project format to translate it in ar
abic forma
t...

is there any DLL or component properties of vb that
allow this..



i did try to configure windows...and set the languague
of my computer bu
t it is not to good..

guys can you help me with
this....
tnx...

Can Excel Format Be Convert Word Document Format??
can I write the macro that convert the excel data to word?

How To Convert .RM (Real Media) File Format To .MP3 Format?
Any One Knows

How to Convert .RM Files to .MP3 Files?

Please Needed Links/Articles/Sample Codes/Suggestion...!

Advance Thanx to All VBCITIzens...

Converting Microsoft Binary Format To IEEE Format Using VB 6
I wrote an accounting package back in the late 80's, early 90's that began back with GWbasic and so on upto Professional Development System ver 7.10. All the Data that was saved to random accessed files using the old unsupported Microsoft Binary Format (MBF). 10 years later the firm now wants me to develop a windows version of the software. I've come to a snag in development right from the start where MS VB no longer supports the MBF format. There are 3 function I need, they are CVI (integer), CVS (single), CVD (Double), these convert MBF strings to thier respected ieee Decimal format. I've been searching the net for about a week trying to find a method to do this and have come up against a brick wall. if anyone is able to assist me in my problem please feel free to add your advice. Anything is better than what I've come up with so far.

Thanks
Russ

How Can I Load A Picture In A Picture Box To A Image's Picture
hi all!
i have a picture box, in that picture box, there is a picture asume it as "pic1.bmp".. now i have made some changes in that picture.

Now i want to load a picture to a image( my form consists of a picture box and a image also).

like image1.picture=loadPicture(picture1.picture) ...

but i know that this statement is invalid....

how can i do it? actually.. yesterday i learned how to make changes on a picture and how to save a picture as .bmp..

so i can do one thing like save the modified picture box as .bmp and can load that .bmp into my image....

suppose if i do.. like this.. i need to change my entire code... since in my real application my images are controll array.. and its better to load the pictures from picturebox control array to this image controll array....

is there any posibility of doing like this.... if so kindly help me...

Thanks in advance..
regards:
raghunadhs.

Making A Picture Fit The Picture Box Instead Of The Box Fitting The Picture.
Hello,

I was wondering if anyone could tell me how to make a picture fit the picture box instead of the box fitting the picture. So I would want the picture to get smaller like the image preview on windows xp, when you click once on a pic and it shows the details and a small form preview of the pic yet not disformed (i.e NOT STRECHED)

Can someone show me how to do this?

Thank you and have a great day!
Stilekid007

Urgent- Picture On Picture Or Text On Picture
how can i open a picture add text or another small picture on top of it and then save it
for instance i have a lot of pictures and i want my name to be on them

File Conversion From .doc Word Format To .txt Format
I want to change .doc word fille format to .txt format using vb code and search some text inside that file. I need help instantly.

Converting Bitmap Images To AVI Format, Then To DVD Format
I found this website for converting a series of bitmap images into an AVI format video:

http://www.shrinkwrapvb.com/avihelp/avihelp.htm

I used it in my VB6 program, and it worked great. I can make AVI animations. Now I am interested in burning my AVI animations on DVD so I can watch them on my friend's television. Are there any similar code snippits that will do that for me without being a genius at programming?

Convert The General Format To Text Format
hi all ,
In excel sheet i want to convet the particular from general format to text.can we do in VBA macro?.

when I'm importing the data from xml to excel 0567899 field value is imported as 567899 as a general format in excel.but i need this value shud be 0567899 in text format can any one help this thing.


Thanks and regds,
noorjahan

Can You Tell Me How To Convert A SVG File Format ToPDF Format From VB.
Hi All,

Can you tell me how to convert a Scalable Vector Graphic (SVG) file format to PDF format from VB.

Thank you so much for your response...

Thanks
Radhakrishnan

Convert Tiff Format To Geotiff Format
Hi to all guru out there,

Currently i need to convert Tiff format to geotiff format. Could anyone suggest any tool and procedure that will assist me in converting my image file.

Is it truth that the resouation will not be affected after converting?

Thank you very much

Format A Number To Text Using Format()
I'd like to take a column of numbers in excel and format them to a fixed number of text carachters with leading zeros. Example:

1 to 001
25 to 025
131 to 131

I can do this with the =text(cell, "000") in the spreadsheet, but would like to use a macro to do it for me.

Here is what I have so far:

Do
data = ActiveCell
ActiveCell = Format(data, "000")
ActiveCell.Offset(1, 0).Select

Loop Until ActiveCell = ""

This script does not format any of the numbers, but I know it is going through the loop. Help Please!!

Format A Number To Time Format?
Hi there,

I'm trying to change a number so that it shows the correct time.

E.g. I know that 1.22287694... equals 5.20 am.

Overall, I need the formula to convert that decimal number into a time format.

Anyone have any info / links ?

Can You Tell Me How To Convert A SVG File Format To PDF Format From VB6.0??
Hi All,

Can you tell me how to convert a Scalable Vector Graphic (SVG) file format to PDF format from VB.

Thank you so much for your response...

Thanks
Radhakrishnan

Format String To Date Format And ....
Question one,
If a user types 4/5/03 into a textbox, how do I format this to this date style - 04/05/03?

They may type it as I want, or they may type it like the above, so I need to make sure before I do part two, below, that it is in the correct format.

Part two,
How can I compare the month part of the date (05) with a Month name (e.g. September) in a Flexgrid. I know I can use the textmatrix to get the name of the month. Would the best way be to use a select case to compare the months?

Convert 8.3 Format To Long Name Format?
Hi all,
I need to convert an 8.3 formatted path to the long name format.
I think the function GetFullPathName can do this, but i'm not sure how to use it. Anyone knows how??
Thanx...

Convert 2000 Format To 97 Format? , How?
Hi,
Can I make a program that can change word2000 and excel2000 documents in office97 format ?.There is a lot of document ( more than 1000 ).How?

Format String To Date Format And .....
Question one,
If a user types 4/5/03 into a textbox, how do I format this to this date style - 04/05/03?

They may type it as I want, or they may type it like the above, so I need to make sure before I do part two, below, that it is in the correct format.

Part two,
How can I compare the month part of the date (05) with a Month name (e.g. September) in a Flexgrid. I know I can use the textmatrix to get the name of the month. Would the best way be to use a select case to compare the months?





Edited by - andy99 on 9/25/2003 9:57:39 AM

Converting +/- 180 Degrees Format Into +/- 90 Format
I'm pretty bad at math, however I need to answer a math problem.

Here's the situation:

There's a circle. It's setup like this:


    180
-90 90
      0

(edit: having a bit of formatting issues here, with spaces, but you get the idea)


How can I convert that degree-format into a +/- 90 degree format?

Example:

-150 would be -30 degrees (+150 would be 30)
-120 would be -60 degrees (+120 would be 60)

I would need the code to take the -150 number, and output -30. If the input was 150, the output would need to be 30. Obviously not just those numbers, it would be for every degree.

Is this doable? I can't get the logic behind doing such a thing, really wish my math was better. :/




Edited by - ThisIsMyUserName on 3/17/2006 1:05:32 PM

Scale A Picture To Fit In A Picture Box And Maintain Height To Width Ratio?
I am writing a program where I would like to allow the user to load pictures into a data record, and these would be displayable by a picture box on the form showing the record. The problem I have is that if the picture is too big, it is clipped, and if I use an image with the stretch method, I risk having the picture distorted as the Height to Width ratio could then be altered by the code. I'd like a way to scale a picture to fit in the picture box, while maintaining the Height to Width ratio. Any suggestions?

Pegasus37

Code To Place A User Selected Picture As The Background Picture
This is an odd request. My company (in its infinite wisdom) has decided to automatically place the company logo as the background picture at network logon.

I'd like to write a little VB program that I could put in the Startup folder that would replace that with my selected picture automatically.

Any ideas on how to access the Windows Background property? Thanks.

Nate

Me.Sections(1).Controls(1).Picture = Form1.picture1.Picture ===> Error Need Help
Me.Sections(1).Controls(1).Picture = form1.picture1.Picture

I want to use picture in form1 and show in datareport but
when run datareport it warn me following
"Object doesn't support properties or method"

Best Regards

Copyright © 2005-08 www.BigResource.com, All rights reserved