How To Do A 3D Transform (perspective) In C# Or .Net
Sep 7, 2011
What I am looking to do sounds really simple, but no where on the Internet so far have I found a way to do this in DotNet nor found a 3rd party component that does this either (without spending thousands on completely unnecessary features).Here goes: I have a jpeg of a floor tile (actual photo) that I create a checkerboard pattern with.In dotnet, it is easy to rotate and stitch photos together and save the final image as a jpeg.Next, I want to take that final picture and make it appear as if the "tiles" are laying on a floor for a generic "room scene". Basically adding a 3D perspective to make it appear as if it is actually in the room scene.Heres a website that is doing something similar with carpeting, however I need to do this in a WinForms application:Flor Website Basically, I need to create a 3D perspective of a jpeg, then save it as a new jpeg (then I can put an overlay of the generic room scene).
View 2 Replies
ADVERTISEMENT
Jan 12, 2010
I'm thinking of trying to learn VB 2008, and I was wondering if there's an online guide or tutorial to get going from the ground up - from the perspective of a former long-time VB6 user (makes it a bit easier to relate functions in VB 2008 and how they replace older functions in VB6)?
View 1 Replies
Mar 18, 2009
I need to transform bitmap images with their 4 corner points moved from one location to another.Any code that can run on Windows, C#/VB.NET preferably, even help how to use scriptable programs like Paint.NET or Photoshop would be accepted
View 4 Replies
Apr 6, 2011
Fourier Transform for pictures in Visual Basic?
View 1 Replies
Nov 26, 2009
There is a bug in my code somewhere. It has a form with 5 input fields and 5 output fields. The algorithm is supposed to do a forward DFT and then immediately do a reverse DFT on the same data - so the output values should be the same. However it returns garbage! as I cannot see where the bug is.
[Code]...
View 3 Replies
Aug 3, 2010
I am grabbing some XML from an API and I want to tranform it before I put it into my dataset. I can't quite piece it together. I am trying to work from the examples in the documentation, but all I find are examples with reading and writing to the filesystem and I am not interested in storing things in the filesystem for this.
I am trying to piece together (1) xmlReader.create(URL) -> (2) xslcompiledtransform(xmlreader,xmlwriter) -> (3) get xmlwriter it into an xmlreader -> (4)dataset.readxml(xmlreader).
I can't figure how to do (2) and (3). How do I initialize the xmlwriter properly and feed it to an xmlreader?
View 7 Replies
Apr 8, 2012
After several hours of browsing google, wanted to check with one of you experts. I have made a winform application to read data from PABX (telecom) device. My application is listening to a particular port and once data received it passes to the data_hander. Application is working fine. But I�m facing a issue in received data string. From PABX system, it sends start and stop bit within the text string. It sends chr(2) as start bit and chr(3) as stop bit. But when my application reads the incoming data stream as follows,
ReceivedData = System.Text.Encoding.ASCII.GetString(bytes, 0, bytes.Length).Trim(Microsoft.VisualBasic.ChrW(0))
It does not recognize the start and stop bit as it sends from PABX. It just replace chr(2) and chr(3) with space and shows rest of the string. The issue is, I just want to take the same string and forward to another application and it needs this start and stop bits as it is to read the string properly. Could somebody guide me how to read this characters from PABX system or at least include them to the received string within my application as send to the other application?
View 4 Replies
Feb 23, 2011
Using the FileHelpers library to do some great things in VB.NET. Parsing files with dynamic classes built from text file templates. One thing I can't find: A way to read in a single record and determine that it should result in the generation of two records.[code]Ideally in this next line I would like it to see certain conditions and be able to generate two records from a single source line. Dim PayRecords() As Object = engine. Transform Records(FromRecords)Alternately, if there is a way to implement the "ITransformable(Of ..." TransformTo() and have it return multiple records, I could put the logic in the dynamic class definition TransformTo() method.[code]
View 1 Replies
Mar 29, 2011
Question: I have data that I retrieve from a database, which looks like this: Now I need to transform it to the below format, in order to be able to draw a piechart. In ReportingService, there is the Matrix control to achieve this, but what can I use to achieve the same in ordinary C#, in order to render it to a PieChart image ? Note that the number of buildings as well as the usage-types is variable and not known ahead of time.
[Code]...
View 1 Replies
Mar 18, 2010
how to transform my textboxes to excel spead sheet within my programe
View 15 Replies
Apr 16, 2012
I do have third party application which produce it�s reports in PDF format. Those reports are having images and different kind of alignments in the pages. So I need a code or guidance to make an application to transform the exact appearance of the PDF file in to Excel. My Issue is the PDF does not have table kind of thing to identify by regular pdf to excel conversions.
View 3 Replies
Mar 30, 2010
I am a beginner of VB and i have no idea how to work on it.
View 5 Replies
Jul 12, 2011
I am tying to get xslt2 transformation using XQSharp, but i get an exception when trying to call ApplyTemplates.[code]
View 1 Replies
Mar 10, 2010
How can I transform this code to a function (anyone can do it for me?)? Otherwise I have to use this long code again and again..
[Code]...
View 8 Replies
Mar 6, 2011
I have this code:
Public Class Transform
Dim inputFile As IO.StringReader ' Object variable
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ofdOpenFile.FileOk
[code]....
And I am getting these errors:
'Private Sub Transform_Load(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures. Line 15
'strOutputPath' is not declared. It may be inaccessible due to its protection level. Line 51
Type 'XslCompiledTransform' is not defined. Line 83
View 1 Replies
May 19, 2009
I'm using XamlWriter, XML Transform (with XSLCompiledTransform), and XamlReader to create deep copies of a user control with multiple user controls and lots of inheritance.
I have it working and am using it in my Print and Print Preview logic. The problem is that it's SLOW and I need to speed it up. Currently when the user selects Print Preview it takes about three seconds for the view to display. I need to reduce this to less than one second!
[Code]...
View 3 Replies
Sep 12, 2011
I have 2 consecutive images from a camera and I want to estimate the change in camera pose:
I calculate the optical flow:
Const MAXFEATURES As Integer = 100
imgA = New Image(Of [Structure].Bgr, Byte)("pic1.bmp")
imgB = New Image(Of [Structure].Bgr, Byte)("pic2.bmp")
grayA = imgA.Convert(Of Gray, Byte)()
[Code]...
How do I calculate the new position and lookat?
If I'm doing this all wrong or if there's a better method,
View 1 Replies
Apr 3, 2009
how do i recieve webcam pics and transform each to a string ?
View 18 Replies
Jul 2, 2010
I need to copy an array to a linked list OR transform the array in a linked list.How this can be done in .NET (C# or VB)?
View 3 Replies
Dec 29, 2009
i need to create a function for transforming an xml document using xslt. I am able to copy the document using xsl:copy-of, however it's not copying the root of the source xml document. As shown below, the root of the xml should be <List xsi:noNamespaceSchemaLocation ~>: [Code]. My IDE is Visual Basic .Net 2008. I need to reproduce the xml file with the SName attributes sorted in ascending order.
View 3 Replies
Mar 20, 2010
i have a small program with random generator when i try to transfer the textboxes to excel i have problem?
View 5 Replies
Feb 22, 2010
how can i transform collection of textboxes to integer
View 11 Replies
Apr 27, 2010
How to write a program to transfrom DDMM.SS (2218.3118 DDMM.SSSS) to Radian mode, which 2218.3118 is export from the GPS reciever.
dd.mm.ss -> dd.mm -> Rad
22'18'31.18" = 22.3086' = 0.38936Rad
2218.3118 (DDMM.SSSS) to 22'18'31.18" (DD.MM.SS) to 22'3087' (DD.MM) to 0.38936 (Rad)
View 11 Replies
Oct 19, 2011
Is there any function (VB.NET or C#) that can transform an English word into its singular or to its plural form? I was thinking of having a database that contains all words in English as well as their plural form but I also think that it is stupid since that will be huge and besides there are rules in English on how to translate a word to its plural form, so why not create a function that does the transformation?
View 4 Replies
May 17, 2012
I'm probably missing something really simple or trying too much at once but it's 16:30 on a Friday afternoon and my head is wrecked Basically, I'm trying to build an application that takes out put from a database query as XML and uses XSL to transform it into HTML which is then displayed in a web browser controll on another form.
I thought I break it up into pieces so I decided to just create an XML file and an XSL stylesheet and read this into the web browser control but all I'm getting is <HTML></HTML>
[Code]...
View 1 Replies
Dec 15, 2010
Let's say, I have something like a table in the WebBrowser component, it's not actually a table, because the data organized in flash, but, it's organized like a table, it has like rows and columns. You can see more in the attached file. Can I transform this text organized as table into DataGridView or some another tool that serves as table. like_a_table.JPG
View 3 Replies
Aug 16, 2010
I am exporting data from vb.net to excel and it is dropping the leading zero when its displayed on excel. How can I avoid the dropping of leading zero? I read the solution of adding a single quote but it makes my excel sheet column ugly. Also users will complain if they see a single quote on zip code field.vb.net code
Response.AddHeader("content-disposition", attachment)
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
the stored procedure outputs XML and it is transformed by XSLT before it is displayed on EXCEL
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HTML>
[code]....
adding a single quote or manipulating excel sheet with column formatter (general/numbers ) etc. I don't want user to make any changes on excel to get the display properly when the excel is displayed from web page it should be all set with proper formatting. also we have no control over client excel software?
View 4 Replies
May 24, 2012
I have a class like this
Public Class Settings
Private _app_folder As String = ""
Public Property AppFolder() As String
[Code]...
But how can I edit "_settings.AppFolder" property to "readonly" ?
View 4 Replies
Nov 20, 2009
I am using SSIS and I need to transform a date. How can I transform a date in String format (e.g. 14/09/1980) to the same but in date format in VB.NET?
I would like the datetime format to insert it into a SQL database.
View 1 Replies
Feb 28, 2012
I am trying to write a LINQ query with a Join in it, using VB on .NET 4.0.
I get the red squiggle under my line of code and when I mouse over it, it shows:
"Cannot not transform LINQ"
Note the double-negative.
Grammatically it would mean there is NO error, but I don't know why there should even be an error message then. This "error" also kills auto-complete on the line in question, as if there actually IS an error.[code]...
View 1 Replies