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. 3 2190
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*****@indiat imes.com> wrote in message
news:5f******** *************** ***@posting.goo gle.com... 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.
* pr*****@indiati mes.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> hi************* **@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<Ol******* *******@TK2MSFT NGP12.phx.gbl>. .. * pr*****@indiati mes.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..an d fast..so i was wondering weather there be a modified
DrawImage()func tion which would map to a polygon which is not
parellelogram. I wanted to keep things simple :-) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 = window.innerWidth;
for (var i=0; i<imgs.length; i++) {
var w=imgs.width;
|
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 high mega pixel
images.
Is there any other approach that can be applied to achieve the gray
scaling and also have a reasonable performance?
|
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 can access these areas, save them and use them to
generate imagemaps.
It is to be used with maps, where the client can add information to areas of
|
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 blurred. I want the edges all
crisp, including inherent pixelation (jaggies).
Setting smoothing to none, or adjusting the
composting mode on the Graphics object still
|
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 before so I would like to ask what
is the best way of doing this, I will not do anything else than scaling the
images.
I found the Python Imaging Library but before I dive into that I would like
to know if there is a better way of doing this.
| |
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 monitoring application that has some very
detailed graphs and charts. I DO NOT want these images scaled under any
circumstances. In fact, my graphs look better on high DPI screens when
the are not scaled.
|
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 inside the polygon.
Eg. Let's say we have 5 points to draw a polygon.
Polygon
---------------------
|
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 resolution to a certain
|
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 , my data structure should have accessed to the faces adjacent to each vertices.
first i read all vertices ,and faces from .m file into a structure.And stored in vectors.
vector<Vertex> vertices;
vector<Face> faces;
Then i render that model.No...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |