473,505 Members | 13,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scaling Images In Polygon

hi.
I am a bit new to graphics programing. I am trying in vb.net to make a
3 walled structure which'll give the look of 3d. for that purpose, I
am using same rectangle filled with textured brush for 3 walls. For
the center wall rectangle is to be drawn as is. For the side walls,I
need a prespective plan view, so the rectangle and hence the images in
textures should be scaled like in a trapezoidal fashion.
But matrices and Drawimage transforms only provide for uniform scaling
in form of parellogram, but not a non-uniformed structure like a
trapezoid.
Is there any way I can do it in an effective and smooth way.
Nov 20 '05 #1
3 2183
Hi,

I would suggest looking into managed DirectX instead.

If you Google 'managed directx' there are some promising results

James

--
Create interactive flowcharts, diagrams and UML models with ERM3 at
http://www.crainiate.net

"pratush" <pr*****@indiatimes.com> wrote in message
news:5f**************************@posting.google.c om...
hi.
I am a bit new to graphics programing. I am trying in vb.net to make a
3 walled structure which'll give the look of 3d. for that purpose, I
am using same rectangle filled with textured brush for 3 walls. For
the center wall rectangle is to be drawn as is. For the side walls,I
need a prespective plan view, so the rectangle and hence the images in
textures should be scaled like in a trapezoidal fashion.
But matrices and Drawimage transforms only provide for uniform scaling
in form of parellogram, but not a non-uniformed structure like a
trapezoid.
Is there any way I can do it in an effective and smooth way.

Nov 20 '05 #2
* pr*****@indiatimes.com (pratush) scripsit:
I am a bit new to graphics programing. I am trying in vb.net to make a
3 walled structure which'll give the look of 3d. for that purpose, I
am using same rectangle filled with textured brush for 3 walls. For
the center wall rectangle is to be drawn as is. For the side walls,I
need a prespective plan view, so the rectangle and hence the images in
textures should be scaled like in a trapezoidal fashion.
But matrices and Drawimage transforms only provide for uniform scaling
in form of parellogram, but not a non-uniformed structure like a
trapezoid.
Is there any way I can do it in an effective and smooth way.


Why not use DirectX for this purpose?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<Ol**************@TK2MSFTNGP12.phx.gbl>...
* pr*****@indiatimes.com (pratush) scripsit:
I am a bit new to graphics programing. I am trying in vb.net to make a
3 walled structure which'll give the look of 3d. for that purpose, I
am using same rectangle filled with textured brush for 3 walls. For
the center wall rectangle is to be drawn as is. For the side walls,I
need a prespective plan view, so the rectangle and hence the images in
textures should be scaled like in a trapezoidal fashion.
But matrices and Drawimage transforms only provide for uniform scaling
in form of parellogram, but not a non-uniformed structure like a
trapezoid.
Is there any way I can do it in an effective and smooth way.


Why not use DirectX for this purpose?


Thanks for the tip and I'll be going for managed directex and
downloading its sdk..but is it not possible in simple GDI+ interfaces
to .net framework? It provides for scaling images in parellolograms
effectively..and fast..so i was wondering weather there be a modified
DrawImage()function which would map to a polygon which is not
parellelogram. I wanted to keep things simple :-)
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4277
by: Ron Crump | last post by:
Hi, I have a small javascript (scalegr.js) that re-scales a sequence of images on a page to be less than the frame width, thus: function scalegr(a) { var imgs = document.images; var fw =...
1
1791
by: susie_richie_30 | last post by:
Hi, I am trying to apply gray scaling to color as well as black/white images. I have tried using the pixel by pixel approach to achieve the scaling. But the particular approach has a issue with...
2
2329
by: Klaus Jensen | last post by:
Hi! I need an ASP.net control, which makes it possible for the user to define imagemaps. I show an image, the user can define areas (polygons would be nice, but just rectangles is ok), and I...
3
2546
by: Larry Serflaten | last post by:
I am taking a 256 color bitmap from a file and scaling it up X 16 to a 32bppPARGB bitmap in memory. I copy that image to the screen. After scaling, the edges of all the lines and colors are...
6
1976
by: Kajsa Anka | last post by:
I would like some advice, I'm going to build a small app that will, among other things, scale images so that they can be published on a web site. I've never done any image processing in python...
3
2510
by: Yofnik | last post by:
Hello all, I need your help. Internet Explorer 6+ has a registry setting (UseHR) that will automatically scale images for displays with high resolution (DPI). I am building a web based...
3
6130
by: jojo41300000 | last post by:
Hi, Is anyone know that how to get the x and y points inside the polygon using C++ program? I have the given polygon data to draw the polygon, but i don't know how to get all the points...
1
4184
by: linksterman | last post by:
hey, I was experimenting with pyglet, and was trying out their opengl, but cant figure out how to scale images... #!/usr/bin/python # $Id:$ '''Demonstrates one way of fixing the display...
3
2220
by: friendkitty | last post by:
Hi All, I m a new member here.I am now writing a program that render Vertex Normals.I m now trying to implement a data structure that will best suit computing vertex normals.For that computation ,...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.