Find Jobs
Hire Freelancers

ASP.NET (VB) Image Resizing Problem

$30-40 USD

完了済み
投稿日: 19年以上前

$30-40 USD

完了時にお支払い
This particular sub-routine changes two variables (intCurrentWidth & intCurrentHeight), that are public to the webform that I've built. The problem is that when an image is larger than the maximum allowed size AND the width is also larger than the maximum allowed size, part of the image gets chopped off in its width. Here's the code: Private Sub ResizeImage(ByRef imageWidth As Integer, ByRef imageHeight As Integer, ByVal maxWidth As Integer, ByVal maxHeight As Integer) intCurrentHeight = imageHeight intCurrentWidth = imageWidth If intCurrentHeight < maxHeight AND intCurrentWidth < maxWidth Then Exit Sub If imageWidth > imageHeight Then If imageWidth > maxWidth Then intCurrentHeight = CType(imageHeight * (maxWidth / imageWidth), Integer) intCurrentWidth = maxWidth End If End If If imageHeight > imageWidth Then If imageHeight > maxHeight Then intCurrentWidth = CType(imageWidth * (maxHeight / imageHeight), Integer) intCurrentHeight = maxHeight End If End If If imageWidth > maxWidth Then intCurrentWidth = maxWidth intCurrentHeight = CType(imageHeight * (maxWidth / imageWidth), Integer) End If If imageHeight > maxHeight THen intCurrentHeight = maxHeight intCurrentWidth = CType(imageWidth * (maxHeight / imageHeight), Integer) End If End Sub One last thing: DO NOT BID UNLESS YOU ALREADY KNOW WHAT THE PROBLEM IS AND HOW TO FIX IT. I DO NOT CARE IF THE WHOLE SUBROUTINE IS COMPLETELY RE-WRITTEN. THIS NEEDS TO BE DELIVERED BY TUESDAY 10/19! ## Deliverables The subroutine fixed, and delivered. ## Platform Visual [login to view URL], ASP.NET
プロジェクト ID: 3394861

プロジェクトについて

1個の提案
リモートプロジェクト
アクティブ 20年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
See private message.
$17 USD 1日以内
4.9 (78 レビュー)
6.0
6.0

クライアントについて

UNITED STATESのフラグ
Thomasville, United States
5.0
5
メンバー登録日:1月 31, 2003

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。