Click here to Skip to main content
       

Visual Basic

 
AnswerRe: Use Stored Procedure with VB6 ADODC PinmvpEddy Vluggen5-Feb-13 3:17 
AnswerRe: Use Stored Procedure with VB6 ADODC PinmemberRichard Deeming5-Feb-13 1:31 
GeneralRe: Use Stored Procedure with VB6 ADODC PinmemberCHill606-Feb-13 3:52 
GeneralRe: Use Stored Procedure with VB6 ADODC PinmvpDave Kreskowiak6-Feb-13 5:43 
AnswerRe: Use Stored Procedure with VB6 ADODC PinmemberYusuf Mohammad5-Feb-13 2:05 
QuestionIN Visual Studio 2010 Pinmemberhtet htet soe4-Feb-13 22:44 
AnswerRe: IN Visual Studio 2010 PinmemberSimon_Whale4-Feb-13 23:17 
Questionpng lossless resize PinmemberJellyCoe4-Feb-13 5:39 
Hello,
 
Everywhere i read that the .png file format is a lossless file format.
 
What i am trying to do is downsize a .png file without the loss of color quality. Is this possible?
 
my code so far(but always losing color quality):
Dim im As Image = Image.FromFile("c:\temp\aaa\Copy.png")
 
        Dim bm As Bitmap = New Bitmap(600, 600, im.PixelFormat)
        bm.SetResolution(im.HorizontalResolution, im.VerticalResolution)
        Dim g As Graphics = Graphics.FromImage(bm)
 
        'g.CompositingQuality = Drawing2D.CompositingQuality.HighQuality
        'g.PixelOffsetMode = Drawing2D.PixelOffsetMode.HighQuality
        g.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias
        g.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic
        g.DrawImage(im, 0, 0, 600, 600)
        bm.Save("c:\temp\aaa\test.png", Imaging.ImageFormat.Png)
 
Thanks for any help;
AnswerRe: png lossless resize PinmemberRene Pilon4-Feb-13 6:54 
QuestionCustom Tab Control that I found on here PinmemberNSoft Studios3-Feb-13 13:10 
AnswerRe: Custom Tab Control that I found on here PinmvpDave Kreskowiak3-Feb-13 13:19 
GeneralRe: Custom Tab Control that I found on here PinmemberNSoft Studios3-Feb-13 13:44 
GeneralRe: Custom Tab Control that I found on here PinmvpRichard MacCutchan3-Feb-13 22:40 
QuestionRetrieving Custom Attributes PinmemberDisIsHoody1-Feb-13 21:34 
AnswerRe: Retrieving Custom Attributes PinmvpEddy Vluggen2-Feb-13 2:11 
QuestionSearch criteria - classic asp not working Pinmembermiss78631-Jan-13 4:01 
AnswerRe: Search criteria - classic asp not working PinmvpEddy Vluggen31-Jan-13 10:18 
GeneralRe: Search criteria - classic asp not working Pinmembermiss7866-Feb-13 1:03 
GeneralRe: Search criteria - classic asp not working PinmvpEddy Vluggen6-Feb-13 7:11 
GeneralRe: Search criteria - classic asp not working Pinmembermiss7866-Feb-13 23:26 
GeneralRe: Search criteria - classic asp not working PinmvpEddy Vluggen7-Feb-13 8:13 
AnswerRe: Search criteria - classic asp not working PinmvpEddy Vluggen8-Feb-13 11:04 
QuestionWebBrowser Dock covers up statusstrip PinmemberNSoft Studios30-Jan-13 15:46 
AnswerRe: WebBrowser Dock covers up statusstrip PinmvpRichard MacCutchan30-Jan-13 22:13 
AnswerRe: WebBrowser Dock covers up statusstrip PinmvpEddy Vluggen30-Jan-13 22:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 10 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid